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

Use TouchInterceptionFrameLayout in Viewpager #277

Open
sajadmartiny opened this issue Nov 2, 2017 · 0 comments
Open

Use TouchInterceptionFrameLayout in Viewpager #277

sajadmartiny opened this issue Nov 2, 2017 · 0 comments

Comments

@sajadmartiny
Copy link

sajadmartiny commented Nov 2, 2017

hi , i am using FlexibleSpaceWithImageWithViewPagerTab2 into view pager , but return the exception here:

` ScrollUtils.addOnGlobalLayoutListener(mInterceptionLayout, new Runnable() {
@OverRide
public void run() {

            FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) mInterceptionLayout.getLayoutParams();
            lp.height = getScreenHeight() + mFlexibleSpaceHeight;
            mInterceptionLayout.requestLayout();

            updateFlexibleSpace();
        }
    });`

return this :
java.lang.ClassCastException: android.support.v4.view.ViewPager$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams

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