android Programming Glossary: lastpos
Different row layouts in ListView http://stackoverflow.com/questions/9664100/different-row-layouts-in-listview . What I want now is to have the last item on a ListView to have a different layout than the rest. Here's my code int lastpos mList.size 1 System.out.println position position mlist lastpos if position lastpos view vi.inflate R.layout.list_item_record.. a different layout than the rest. Here's my code int lastpos mList.size 1 System.out.println position position mlist lastpos if position lastpos view vi.inflate R.layout.list_item_record null holder.textView TextView view.findViewById R.id.record_view.. than the rest. Here's my code int lastpos mList.size 1 System.out.println position position mlist lastpos if position lastpos view vi.inflate R.layout.list_item_record null holder.textView TextView view.findViewById R.id.record_view else view vi.inflate..
|