Max Hille wrote: > I am extending LinearLayout to have an easy way of building lists with > header and footer views. While doing this, I want to maintain the > LinearLayout's API (e.g. XML-added views). To do this, I have to override > <LinearLayout#getVirtualChildAt(int)> and > <LinearLayout#getVirtualChildCount()>. These methods even state per source > comment that they are meant to be overridden. The visibility of these > methods is not <protected> but <default>, thus they have to be overridden > with a <public> modifier and cannot be annotated with <@Override>. > > Should my solution be considered API-abuse or should I consider the package > visibility a bug in <LinearLayout>? > Any more elegant solutions for building lists with with header / footer > elements? (ListView won't work because I may need multiple lists in one > scrollable layout).
I don't really think you need to override these methods at all pskink -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en