On Sun, Jan 1, 2012 at 10:51 PM, Alex Fu <[email protected]> wrote: > Can someone provide an example as to how this function, > http://developer.android.com/reference/android/widget/ListView.html#addFooterView(android.view.View, > java.lang.Object, boolean), would work? As with a ListView, you need > an adapter. Which adapter does this function uses? The same adapter > for your ListView?
It wraps the adapter you provide via setAdapter() in its own adapter that adds in the header and footer views. > If so how would you determine if the footer view is > being passed, assuming your footer view has a different view structure > compared to the rows in your ListView. You will not receive the footer view for recycling in getView()/bindView(). If you wish to update the footer, hold onto your footer view and update it directly. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

