Skip to content

Instantly share code, notes, and snippets.


Dmuasya/ Secret

Created Dec 22, 2020
What would you like to do?
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
ViewGroup.LayoutParams params = mViewPager.getLayoutParams();
params.height = getMeasuredHeight() - mNav.getMeasuredHeight();
protected void onSizeChanged(int w, int h, int oldw, int oldh)
super.onSizeChanged(w, h, oldw, oldh);
mTopViewHeight = mTop.getMeasuredHeight();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment