Answer the question
In order to leave comments, you need to log in
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
Found a solution:
listView.setPadding(0, 0, 0, 70);
listView.setClipToPadding( false );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question