Search code examples
androidlistviewlistitemlistadapter

How to display "More" list item in ListView?


I want to display a list item that says "More" at the end of my ListView. Clicking on this list-item will perform some action. How can I create this "more" list item?


Solution

  • Just add another value to your arrayadapter (or any other adapter), you might be using.set the text to 'more' . Suppose you have n items in the list then handle the (n+1)th postion click and do your stuff.