When adding the views on the MyHorizontalScrollView, if the app view is heavy you can see the delay before this happens:
new Handler().post(new Runnable() {
@Override
public void run() {
me.scrollBy(scrollToViewPos, 0);
}
});
I fixed it by adding this to the MyHorizontalScrollView class:
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
super.onLayout(changed, l, t, r, b);
this.fullScroll(HorizontalScrollView.FOCUS_RIGHT);
}
When adding the views on the MyHorizontalScrollView, if the app view is heavy you can see the delay before this happens: new Handler().post(new Runnable() { @Override public void run() { me.scrollBy(scrollToViewPos, 0); } });
I fixed it by adding this to the MyHorizontalScrollView class: @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); this.fullScroll(HorizontalScrollView.FOCUS_RIGHT); }