A
A
Alexander Vasyuchenko2014-04-17 16:32:47
Android
Alexander Vasyuchenko, 2014-04-17 16:32:47

ListView: is there an analogue of contentInset?

Good afternoon!
Using the ListView component, it was required to have an indent from the bottom when scrolling (namely, when scrolling, and not by default!). In android, I didn't find a solution for this other than adding an empty cell at the bottom, but that's not a good solution for me.
The ios sdk for UIScrollView has a wonderful contentInset property (who in the subject will understand). Is there such an analogue or some similar beautiful solution in android for ListView?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Vasyuchenko, 2014-04-17
@alexv1981

Found a solution:

listView.setPadding(0, 0, 0, 70);
listView.setClipToPadding( false );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question