Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay on scroll to right #6

Open
Antilopez opened this issue Sep 4, 2013 · 0 comments
Open

Delay on scroll to right #6

Antilopez opened this issue Sep 4, 2013 · 0 comments

Comments

@Antilopez
Copy link

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant