I am having a brain fart at the moment. I have a listview that I add the first line with lvWhatever.addsingleline("Add New") and then I run a for loop to get results from the db.
That all works perfectly but the issue I have is setting the total height of the listview. If it only has the Add New line and 2 lines from the db, I don't want it taking up the whole screen . On the other hand if it has 40 records, I only want it to cover 90%y of the screen.
Is there anything I can do?
That all works perfectly but the issue I have is setting the total height of the listview. If it only has the Add New line and 2 lines from the db, I don't want it taking up the whole screen . On the other hand if it has 40 records, I only want it to cover 90%y of the screen.
Is there anything I can do?