So I was looking at android.content.res.XmlResourceParser . Apparently, this is the definition in the online API on Android developer site:
public interface XmlResourceParser implements AttributeSet XmlPullParser
How is this possible? Is this an error?
How can an interface IMPLEMENT another interface (or two)? Shouldn't it EXTEND them?
Rob Spoor wrote:You're right Nidhi, an interface cannot implement other interfaces but only extend them. I don't think this is a fault in the source code. Instead, the API doc generator seems to have a small bug in it, where it puts all "parent" interfaces into an "implements" list, even if the current class is an interface itself.
Thanks Rob. I thought I was going crazy