There is a RecyclerView in which in the view in the middle of the list I add the child views of the x, with this I need to see the last added View in a specific item'e. I tried to do this:

linearLayoutManager.scrollToPositionWithOffset(recyclerViewAdapter.currentQuestionPosition,-50); 

So I can pull up the necessary element up, indicating a negative value, but how can I substitute this value there dynamically depending on how much the element has increased

    0