How to snap screen to edge of view inside scrollview?

I got some content inside scrollview, its similar boxes, many boxes. Each of them has input fields.

I want to snap the screen to the edge of the window when it touches the input field. I know that there is a function with scrollView, this is scrollTo (x, y); or something like that.

Can I use this to snap a screen? And if so, how can I get the coordinates of the edge of the view or something that I need?

Anyone can help?

(Sorry for bad English, I hope you understand my problem)

+3
source share

All Articles