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
你好,请问我的应用是横屏的app,设计稿是:1024dp * 738dp,使用这个适配方案在平板上如果底部有导航栏的话就会出现顶部一部分界面显示不全的问题,并且只有这一个页面有问题,其他都正常的。如果把导航栏隐藏掉则正常, 如图 参考这个issue 修改高度,好像没有任何作用,请问这是什么原因呢? 手机底部有虚拟导航栏和全屏时候不适配 #125
MainActivityV4 Info: isBaseOnWidth = true, designWidthInDp = 1024.000000, designWidthInSubunits = 1024.000000, targetDensity = 1.875000, targetScaledDensity = 1.875000, targetDensityDpi = 300, targetXdpi = 1.875000, targetScreenWidthDp = 1024, targetScreenHeightDp = 533
在MainApplication 里面添加如下代码
AutoSizeConfig.getInstance() //屏幕适配监听器 .setOnAdaptListener(new onAdaptListener() { @Override public void onAdaptBefore(Object target, Activity activity) { //ScreenUtils.getScreenSize(activity) 的参数一定要不要传 Application!!! if (activity.getLocalClassName().contains("MainActivityV4")) { KLog.i(" MainActivityV4 "+(ScreenUtils.getScreenSize(activity)[1])+" "+BarUtils.getNavBarHeight()+" "+ com.blankj.utilcode.util.ScreenUtils.getScreenHeight()); AutoSizeConfig.getInstance().setScreenWidth(ScreenUtils.getScreenSize(activity)[0]); AutoSizeConfig.getInstance().setScreenHeight(ScreenUtils.getScreenSize(activity)[1]-BarUtils.getNavBarHeight()); } } @Override public void onAdaptAfter(Object target, Activity activity) { } });
The text was updated successfully, but these errors were encountered:
可能修改屏幕高度时,获取的导航栏高度,不是适配后的高度
Sorry, something went wrong.
No branches or pull requests
你好,请问我的应用是横屏的app,设计稿是:1024dp * 738dp,使用这个适配方案在平板上如果底部有导航栏的话就会出现顶部一部分界面显示不全的问题,并且只有这一个页面有问题,其他都正常的。如果把导航栏隐藏掉则正常,
如图
参考这个issue 修改高度,好像没有任何作用,请问这是什么原因呢?
手机底部有虚拟导航栏和全屏时候不适配 #125
Environment
Log:
Screenshot
Related Code:
在MainApplication 里面添加如下代码
Others:
The text was updated successfully, but these errors were encountered: