Skip to content

Delay on scroll to right #6

Open
@Antilopez

Description

@Antilopez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions