Android Horizontal Scroll View full scroll right doesnt go all the way

2.1k Views Asked by At
hsv.fullScroll(HorizontalScrollView.FOCUS_RIGHT);

Takes my HorizontalScrollView 99% to the right but not 100%, I need to scroll the view all the way to the right. Any idea what goes wrong?

1

There are 1 best solutions below

0
On BEST ANSWER

This can be solved by using a ViewTreeObserver applied on the HorizontalScrollView

An example can be found here:

Android - HorizontalScrollView will not scroll all the way