Comments (2)
mate8屏幕是1920x1080-6英寸的屏 -底部因为有个底部栏 -所以打印出来
heightPixels:1812
widthPixels:1080
density:2.5
heightDP:724.8
widthDP:432.0
按照教程他应该是在432dp,但是运行demo,他使用的还是360dp的。
如果我把432dp的dimen文件放到360dp的文件夹,mate8就可以正常显示,但是这样原本都是360dp的手机就都会适配不了。
请问这个应该如何解决,谢谢
from screenadaptation.
@a4425421 如果是竖屏适配,那么按你打印的最小宽度就是432dp,系统会自动匹配values-sw432dp,没有该文件夹才会往下匹配。像你说的使用的是360dp的情况,可能是你的项目没有values-sw432dp往下匹配了,或者你哪里弄错了,你可以运行我的demo试试。
from screenadaptation.
Related Issues (20)
- 请问app 里面有的界面需要横屏显示 应该怎么去设置额? HOT 1
- 插件不能下载了好像,是否提供下另一个地址 HOT 1
- 不同横屏设备的适配 HOT 1
- 请问这个插件是停止维护了吗? HOT 1
- Android studio 4.0生成的文件夹里没有文件 HOT 5
- 手机横屏过来的时候还是读到竖屏时宽度对应的尺寸 HOT 1
- AS4.1不兼容了,能适配一下吗,大佬 HOT 8
- 其他尺寸适配 HOT 1
- 在三星系列手机上无法匹配最小宽度411.4285dp,直接使用了默认的360dp,导致布局错误。比如三星note8 HOT 3
- 最小宽度是什么啊 HOT 1
- 作者有没有考虑做成一个远程依赖 HOT 1
- 荣耀平板v6,sp14适配字体偏大(真实设备),红米k30看起来正常 HOT 2
- 请教一下,如果有些view的宽高 需要在代码中动态设置dp,该怎么办? HOT 1
- 项目组件化后 如何处理 dimens.xml 文件? HOT 2
- 新的最小宽度尺寸 :451.7647 HOT 1
- 您好,首先感谢您的开源,你的库对我们这些开发者帮助非常的大,不过我有些不太理解的地方,想请教下dp转px的问题,这个问题不是您的库的问题 HOT 2
- 适配手机和平板横屏 HOT 2
- 直接开发tv 版本的 设计图是 1080 base_dp 我也是写1080吧 HOT 1
- 请问下,我这种情况是怎样填写base_dp HOT 2
- IDEA 插件库的作者是您吗?Dolphin 版本上文件格式存在异常 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screenadaptation.