A
A
Andrey Myvrenik2016-03-02 12:05:07
Android
Andrey Myvrenik, 2016-03-02 12:05:07

How to change current list position using RecyclerView.LayoutManager with offset?

There is a RecyclerView to which RecyclerView.LayoutManager is connected . To change the position at the moment I use the scrollToPosition method , however, I need the list element to be not exactly the top edge to the top edge of the screen, but slightly lower. How can this be organized?
How to:
5ec42f341e2e4ded9029e3dc9c12e7bd.png
How scrollToPosition does:
0baac372a81344c3bd54d7a4d7383eca.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2016-03-02
@gim0

>How can this be organized?
Move the connection between items 1 and 2 to an additional item

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question