-2

I make an app that allow user to read in English and in my language. But the text is long, maybe 100 lines for each file.
so when the user scroll down maybe to line 20(like reading in English), the when user switch to my language, it is on line 15 or 16. so how can i let the user go to line 20 when they switch to other language? now i am using Textview to show the text.

1 Answers1

0

Easiest way is to get it using View.getLocationOnScreen(); OR getLocationInWindow();

And if you want position relative to root Layout then See

Community
  • 1
  • 1
Meghshyam Sonar
  • 377
  • 4
  • 12