We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {//解决例如切换fragment不显示的bug if(!isMeasured){ mMenuView = getChildAt(0); mContentView = getChildAt(1); mMenuView.getLayoutParams().width = mScreenWidth - mMenuOffset; mMenuView.getLayoutParams().height = mScreenHeight - getStatusBarHeight(getContext()) - getActionBarHeight(); mContentView.getLayoutParams().width = mScreenWidth; mContentView.getLayoutParams().height = mScreenHeight - getStatusBarHeight(getContext()) - getActionBarHeight(); isMeasured = true; } measureChild(mMenuView, widthMeasureSpec, heightMeasureSpec); measureChild(mContentView, widthMeasureSpec, heightMeasureSpec); setMeasuredDimension(mScreenWidth * 2 - mMenuOffset, mScreenHeight); } @Override protected void onLayout(boolean b, int i, int i1, int i2, int i3) {//解决例如切换fragment不显示的bug mMenuView.layout(0, 0, mScreenWidth - mMenuOffset, mScreenHeight - getStatusBarHeight(getContext()) - getActionBarHeight()); mContentView.layout(mScreenWidth - mMenuOffset, 0, mScreenWidth - mMenuOffset + mScreenWidth, mScreenHeight - getStatusBarHeight(getContext()) - getActionBarHeight()); if (b) { mContentView.setClickable(true); mMenuView.setClickable(true); mMenuView.setBackgroundColor(Color.TRANSPARENT); scrollTo(mScreenWidth - mMenuOffset, 0); } }
具体的可以qq找我 853790230
The text was updated successfully, but these errors were encountered:
No branches or pull requests
具体的可以qq找我 853790230
The text was updated successfully, but these errors were encountered: