Comments (7)
提供框架日志截图 + 页面截图
from androidautosize.
冷启动:
08-23 09:32:50.731 4877-4877/? D/AndroidAutoSize: designWidthInDp = 360, designHeightInDp = 0, screenWidth = 1080, screenHeight = 2248
initDensity = 2.75, initScaledDensity = 2.75
08-23 09:32:50.796 4877-4877/? D/AndroidAutoSize: com...FirstActivity used the global configuration.
08-23 09:32:50.798 4877-4877/? D/AndroidAutoSize: The com...FirstActivity has been adapted!
FirstActivity Info: isBaseOnWidth = true, designWidthInDp = 360.000000, targetDensity = 3.000000, targetScaledDensity = 3.000000, targetDensityDpi = 480
08-23 09:32:52.279 4877-4877/com.zol.android D/AndroidAutoSize: com...MainActivity used the global configuration.
08-23 09:32:52.280 4877-4877/com.zol.android D/AndroidAutoSize: The com....MainActivity has been adapted!
MainActivity Info: isBaseOnWidth = true, designWidthInDp = 360.000000, targetDensity = 3.000000, targetScaledDensity = 3.000000, targetDensityDpi = 480
热启动:
08-23 09:34:59.870 4877-4877/com.zol.android D/AndroidAutoSize: com...FirstActivity used the global configuration.
08-23 09:34:59.872 4877-4877/com.zol.android D/AndroidAutoSize: The com...FirstActivity has been adapted!
FirstActivity Info: isBaseOnWidth = true, designWidthInDp = 360.000000, targetDensity = 3.000000, targetScaledDensity = 3.000000, targetDensityDpi = 480
08-23 09:35:02.943 4877-4877/com.zol.android D/AndroidAutoSize: com...MainActivity used the global configuration.
08-23 09:35:02.944 4877-4877/com.zol.android D/AndroidAutoSize: The com...MainActivity has been adapted!
MainActivity Info: isBaseOnWidth = true, designWidthInDp = 360.000000, targetDensity = 3.000000, targetScaledDensity = 3.000000, targetDensityDpi = 480
from androidautosize.
看日志是没问题的
from androidautosize.
你们没出现问题吗?
from androidautosize.
没,测试不管什么启动都没问题,建议多用几个设备测试
from androidautosize.
我也出现了这个问题
2019-03-25 19:17:38.505 17913-17913/? D/AndroidAutoSize: designWidthInDp = 250, designHeightInDp = 444, screenWidth = 1080, screenHeight = 2016
2019-03-25 19:17:38.506 17913-17913/? D/AndroidAutoSize: initDensity = 3.0, initScaledDensity = 3.0
2019-03-25 19:17:38.563 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.MainActivity onAdaptBefore!
2019-03-25 19:17:38.564 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.MainActivity implemented by me.jessyan.autosize.internal.CustomAdapt!
2019-03-25 19:17:38.570 17913-17913/? D/AndroidAutoSize: The com.lehome.mobile.MainActivity has been adapted!
MainActivity Info: isBaseOnWidth = true, designWidthInDp = 250.000000, designWidthInSubunits = 250.000000, targetDensity = 4.320000, targetScaledDensity = 4.320000, targetDensityDpi = 691, targetXdpi = 4.320000
2019-03-25 19:17:38.571 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.MainActivity onAdaptAfter!
2019-03-25 19:17:38.760 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.MainActivity onAdaptBefore!
2019-03-25 19:17:38.761 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.MainActivity implemented by me.jessyan.autosize.internal.CustomAdapt!
2019-03-25 19:17:38.766 17913-17913/? D/AndroidAutoSize: The com.lehome.mobile.MainActivity has been adapted!
MainActivity Info: isBaseOnWidth = true, designWidthInDp = 250.000000, designWidthInSubunits = 250.000000, targetDensity = 4.320000, targetScaledDensity = 4.320000, targetDensityDpi = 691, targetXdpi = 4.320000
2019-03-25 19:17:38.766 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.MainActivity onAdaptAfter!
2019-03-25 19:17:38.847 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.home.HomeFragment onAdaptBefore!
2019-03-25 19:17:38.848 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.home.HomeFragment implemented by me.jessyan.autosize.internal.CustomAdapt!
2019-03-25 19:17:38.852 17913-17913/? D/AndroidAutoSize: The com.lehome.mobile.MainActivity has been adapted!
MainActivity Info: isBaseOnWidth = true, designWidthInDp = 250.000000, designWidthInSubunits = 250.000000, targetDensity = 4.320000, targetScaledDensity = 4.320000, targetDensityDpi = 691, targetXdpi = 4.320000
2019-03-25 19:17:38.852 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.home.HomeFragment onAdaptAfter!
2019-03-25 19:17:38.853 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.mall.MallFragment onAdaptBefore!
2019-03-25 19:17:38.854 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.mall.MallFragment implemented by me.jessyan.autosize.internal.CustomAdapt!
2019-03-25 19:17:38.859 17913-17913/? D/AndroidAutoSize: The com.lehome.mobile.MainActivity has been adapted!
MainActivity Info: isBaseOnWidth = true, designWidthInDp = 250.000000, designWidthInSubunits = 250.000000, targetDensity = 4.320000, targetScaledDensity = 4.320000, targetDensityDpi = 691, targetXdpi = 4.320000
2019-03-25 19:17:38.859 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.mall.MallFragment onAdaptAfter!
2019-03-25 19:17:38.860 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.mine.fragment.MineFragment onAdaptBefore!
2019-03-25 19:17:38.861 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.mine.fragment.MineFragment implemented by me.jessyan.autosize.internal.CustomAdapt!
2019-03-25 19:17:38.865 17913-17913/? D/AndroidAutoSize: The com.lehome.mobile.MainActivity has been adapted!
MainActivity Info: isBaseOnWidth = true, designWidthInDp = 250.000000, designWidthInSubunits = 250.000000, targetDensity = 4.320000, targetScaledDensity = 4.320000, targetDensityDpi = 691, targetXdpi = 4.320000
2019-03-25 19:17:38.866 17913-17913/? D/AndroidAutoSize: com.lehome.mobile.mine.fragment.MineFragment onAdaptAfter!
from androidautosize.
AutoSizeConfig#setDesignWidthInDp 在初始化时自行设置设计图宽度
from androidautosize.
Related Issues (20)
- 在开发sdk中使用mm副单位尽可能避免接入方冲突,但是如果接入方也使用该框架并使用其它副单位是不是就冲突了? HOT 1
- 使用这个框架后导致系统界面尺寸混乱,请问如何解决 HOT 5
- 鸿蒙
- 引入饺子播放器后,横屏切换竖屏后,播放按钮变大,其他控件正常 HOT 3
- 建议使用 Android Jetpack 组件里的 App Startup 库来初始化 HOT 3
- DatePicker,TimePicker展示不全问题 HOT 1
- 横屏设备上改为按高度适配后,图片模糊 HOT 2
- windowmanager中的view整体变小 HOT 2
- 在列表中使用Glide加载图片特定行出现放大问题 HOT 3
- Tried to access visual service WindowManager from a non-visual Context
- initCompatMultiProcess 出错
- 折叠屏如何适配
- ERROR:can only be called once~ HOT 2
- 每次打开布局都需要选择下预览设备
- 布局预览错乱 HOT 1
- Coil加载错误 HOT 2
- 同问折叠屏如何适配,如何动态修改基准宽高
- 关于.9.png图的位置放置问题
- 改变density导致滑动手势的判定出现问题,已附上解决方案。
- 项目中用了这个库,折叠屏如何适配?
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 androidautosize.