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

Real Pixel Offset #53

Open
salvonos opened this issue Oct 27, 2017 · 0 comments
Open

Real Pixel Offset #53

salvonos opened this issue Oct 27, 2017 · 0 comments

Comments

@salvonos
Copy link

salvonos commented Oct 27, 2017

Is it possible to get the real pixel Offset so I can get a layout view to fallow the drag/scroll?

mVertOverScrollEffect = OverScrollDecoratorHelper.setUpOverScroll(recyclerView, OverScrollDecoratorHelper.ORIENTATION_VERTICAL);

        mVertOverScrollEffect.setOverScrollUpdateListener(new IOverScrollUpdateListener() {
            @Override
            public void onOverScrollUpdate(IOverScrollDecor decor, int state, float offset) {

                Toast.makeText(getApplicationContext(), "Offset Pixels " + (int) offset,Toast.LENGTH_LONG).show();

                RelativeLayout.LayoutParams params= new RelativeLayout.LayoutParams(screenWidth,(int) offset);
                params.addRule(RelativeLayout.BELOW, R.id.header);
                firstCellLayout.setLayoutParams(params);
            }
        });
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