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

where is SlidingUpBaseActivity? #267

Open
masooddalman opened this issue Jan 18, 2017 · 0 comments
Open

where is SlidingUpBaseActivity? #267

masooddalman opened this issue Jan 18, 2017 · 0 comments

Comments

@masooddalman
Copy link

masooddalman commented Jan 18, 2017

hi
thanks for your amazing lib.

i want to make something like "SlidingUpScrollViewActivity".

i copy code from sample project but SlidingUpBaseActivity<ObservableScrollView> not found and cannot extent my class.

public class MyClass extends SlidingUpBaseActivity<ObservableScrollView> implements ObservableScrollViewCallbacks {

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_showapp;
    }

    @Override
    protected ObservableScrollView createScrollable() {
        ObservableScrollView scrollView = (ObservableScrollView) findViewById(R.id.scroll);
        scrollView.setScrollViewCallbacks(this);
        return scrollView;
    }

    @Override
    public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {

    }

    @Override
    public void onDownMotionEvent() {

    }

    @Override
    public void onUpOrCancelMotionEvent(ScrollState scrollState) {

    }
}

problem solved.

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