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

省市区联动的Dialog挡住了导航栏 #690

Open
budaowengd opened this issue Dec 4, 2018 · 2 comments
Open

省市区联动的Dialog挡住了导航栏 #690

budaowengd opened this issue Dec 4, 2018 · 2 comments

Comments

@budaowengd
Copy link

省市区联动的Dialog挡住了导航栏,
image

@uniquext
Copy link

省区联动的模式暂时还没有使用过,但是我在条件选择模式下遇到了和你同样的问题。
我没有使用dialog形式,因此是在decorView下生成的View。
解决方案如下

FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) mPicker.getDialogContainerLayout().getLayoutParams();
layoutParams.bottomMargin = ViewMeasure.getSystemBarHeight(this, ViewMeasure.SystemBar.Navigation);
mPicker.getDialogContainerLayout().setLayoutParams(layoutParams);

其中ViewMeasure.getSystemBarHeight为我自己封装的测量系统状态栏和导航栏高度的方法

@JohnDwang
Copy link

请问你是如何处理的

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

3 participants