Use TouchInterceptionFrameLayout in Viewpager
sajadmartiny opened this issue · 0 comments
sajadmartiny commented
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