0

I want to scroll to a specific string or index of text. i get search text position and i want to scroll or focus center of screen to my specific string in RecyclerView

I tried to many ways but not solved

now i scroll to like this

LinearLayoutManager llm = (LinearLayoutManager) recyclerView.getLayoutManager();
llm.scrollToPositionWithOffset(row, position);

but it scroll only row of RecyclerView. i need scroll to specific word can some one help me. thank you

Ashish
  • 6,791
  • 3
  • 26
  • 48

1 Answers1

1

layoutmanager.scrollToPosition(position);

or

recycler.getLayoutManager().scrollToPosition(position)

MIF50
  • 31
  • 1
  • 4