[android-developers] Extending LinearLayout / #getVirtualChild*

2012-10-16 Thread Max Hille
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

Re: [android-developers] Extending LinearLayout / #getVirtualChild*

2012-10-16 Thread Romain Guy
You don't need to override these methods, otherwise they would be public or protected. These methods are used by TableRow/TableLayout. You don't need to worry about them, they are only meant for internal use. On Tue, Oct 16, 2012 at 2:13 AM, Max Hille docop...@gmail.com wrote: I am extending