Others have not escaped this, but I thought it might help post a piece of code. If there is a better technique, I will gladly take a voice if I find out something.
A cheap way is to add extra βlinesβ to your xml layout. Any additional lines will be cropped by the screen. This can become messy: on a higher resolution screen, you may need to add many additional text elements. Since they are cropped, I suppose you could add as much as you want. It will look something like this:
<LinearLayout> <ListView></ListView> <TextView/> <TextView/> <TextView/> ... </LinearLayout>
Another option is to add extra rows to the ListView, as mentioned earlier. If you are attached to an array, add extra lines to the array and process it accordingly. By the way, if you use a cursor, you can use MaxtrixCursor and MergeCursor, as described in this post: fooobar.com/questions/185704 / ...
I ended up using a combination of these methods. I try to count the number of rows that I want to add to my ListView, but I am mistaken on the side of caution and have a couple of TextViews under my ListView that make it all merge.
source share