Android-ObservableScrollView icon indicating copy to clipboard operation
Android-ObservableScrollView copied to clipboard

Use TouchInterceptionFrameLayout in Viewpager

Open sajadmartiny opened this issue 8 years ago • 0 comments

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

sajadmartiny avatar Nov 02 '17 06:11 sajadmartiny