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

在模拟器上运行,有底部导航栏的情况,适配的时候会有一条白底 #30

Closed
5 tasks done
ljackChen001 opened this issue Aug 29, 2018 · 3 comments
Closed
5 tasks done

Comments

@ljackChen001
Copy link

Environment

  • Autosize Version: v0.8.0
  • Target Android Version: Android 9.0
  • Device Model: Pixel XL
  • Device Resolution: 1440px * 2560px
  • Design Size On AndroidManifest: 360dp * 640dp

Bug Description:

在模拟器上运行,有底部导航栏的话,适配的时候会有一条白底,用命令隐藏底部导航栏 adb shell settings put global policy_control immersive.navigation=* 就没有白底了。有人在真机测试中遇到类似的情况吗?

Log:

SettingActivity Info: isBaseOnWidth = true, designWidthInDp = 360.000000, targetDensity = 4.000000, targetScaledDensity = 4.000000, targetDensityDpi = 640

Screenshot

screenshot_1535510571

Related Code:

  

Others:

@JessYanCoding
Copy link
Owner

#8 看看这里

@ljackChen001
Copy link
Author

OK解决了 现在是用的全局高度适配,总感觉宽度适配比高度更加好一点0.0

@JessYanCoding
Copy link
Owner

对,因为大多数页面宽度是固定,高度因为可以上下滑动,所以不是固定的,但这个方案因为要适配屏幕高宽比和设计图高宽比不一样的适配,所以只能让高和宽中的一个正好填充屏幕,所以大多数情况用,以宽为基准就行了

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

2 participants