Answer the question
In order to leave comments, you need to log in
How to make scrollable indent in android?
There is a RecyclerView and I need to make sure that the first element nested in it has an indent (indent from the RecyclerView itself), but so that this indent could be scrolled. Tried to do it with layout_marginTop (on the element) but that applies the margin to all elements that are created in the recycler view. How can such a retreat be made?
Answer the question
In order to leave comments, you need to log in
The best way is with ItemDecoration'a. Just count the indent for the first element only.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question