In a list, is it possible to have different kind of views, inflated from different layout XML?
I started with the sample in the API Demo, using the Efficient Adapter, and it starts like this public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) { ..... where the XML is inflated... } else{ holder = (ViewHolder)convertView.getTag(); } } How am I able to have certain rows with layout inflated from a different XML? The method above seems to assume that all of them will have the same kind of layout. I wish to make the last row a view with a Next/Previous button, and add rows with different layout in the middle of the list. Hope someone can help with this. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---