I'm programming an quiz app. I have a TextView with a Question. The Textview height is changing depending on the question. Under the textview is a listview with the answers. I want to do something if the listview contains more items than i can see. So if there is a new question i write the text into the textview and fill the quesitons as item in the listview. After that I make listView.getLastVisiblePosition(); but it is always -1. When i make a extra button and and put the mehtode inside it returns the correct lastVisiblePosition. So I tried to get the height of all items in the listview (and the dividers) and compare this height with the listview.getHeight. But the Listview height is always bigger then the itemsheight. So I tried listview.canScrollVertically but it is always true.
So I have no idea how i can check if i can see all items in de listview or i have to scroll.