I have HorizontalScrollView with few TextViews. Each TextView might contain text of different length.
How should I calculate correct offset to scroll to using \"scro
Try this:
int x, y; x = myTextView.getLeft(); y = myTextView.getTop(); myHsv.scrollTo(x, y);
getLeft() and getTop() should return the coordinates relative to the parent view (that is, the HorizontalScrollView in this instance.
getLeft()
getTop()
HorizontalScrollView