How would you get the position of a TextView inside a scrollview then set it somewhere. For example, When TextView gets scrollY to 200, set TextView at (x,y)
Asked
Active
Viewed 917 times
1
-
Why is getting position required? – Vivek Mishra Dec 29 '16 at 07:56
-
id like to create sticky headers but i do not want the headers to stick on the top instead id like it to stick about half way of a screen. – Sean Dec 29 '16 at 08:05
-
1look at : http://stackoverflow.com/questions/3327087/how-to-get-the-current-y-offset-of-a-scrollview - and : http://stackoverflow.com/questions/12878997/how-to-get-the-offset-of-a-view-inside-a-scrollview – Saeid Dec 29 '16 at 08:25