Comments (5)
应该说是系统的usb权限申请弹窗,系统应该是1024*600的,我在清单文件配置宽度512,感觉是整体比系统默认情况放大了一倍
from androidautosize.
dialog的文字大小依然无法解决,这是个大问题。
就相当于是第三方库里面的控件是使用正常尺寸来写的,我们自己的项目配置了第三方库之后,它的界面里面的尺寸都有问题了,我1024x600的平板,dpi为160,但是我的ui图设置宽为512,那么我的清单文件配置512,意味着所有尺寸放大两倍。
现在第三方库里有一控件设置宽度是当前屏幕最大宽度dp,那么我使用就成了当前屏幕(最大dp 乘以2)。然后超出屏幕。。。
from androidautosize.
然后总结了一些使用者的解决方式:
1.想办法自定义这个第三方控件(但是有的没办法自定义,源码里面私有了)
2.把当前activity取消适配,用其他方式适配(但是当前界面里很多代码都是使用这种方式,感觉改动量很大,对于使用少的可以使用这种方式)
3.让自己去改项目尺寸去适配三方库的(肯定不行,如果使用多个库,怎么适配)
4.有人总结可以修改dialog的theme,确实尺寸改了,但是里面的文字大小有的改不了,导致显示很奇怪。(可以视情况将就)
5.有人说在show前,先取消适配,show完再配置(发现不行,show前取消适配要不无效,要不有效后自己的其他控件显示不正常)
提个想法,看行不行(就是可以单独对控件做取消适配的操作):
一般使用dialog或者toast,或者其他基本都需要传activity之类的,但是使用了适配之后的acitivity传过去对这些有影响,我能不能传一个未适配前的acitvity过去呢,不知道AutoSize能不能提供相应函数获取,同时不影响其他逻辑
from androidautosize.
别用dp单位,用其他的副单位
from androidautosize.
我也有相同的问题 会导致系统弹框的大小显示异常
from androidautosize.
Related Issues (20)
- Fatal Exception: java.lang.LinkageError: Class androidx.fragment.app.FragmentActivity method void android.app.Activity.onWindowFocusChanged() resolves differently in interface android.view.Window$Callback: Type list mismatch with void android.view.Window$Callback.onWindowFocusChanged(boolean) (declaration of 'androidx.fragment.app.FragmentActivity' appears in /data/app/-1/base.apk)
- 在开发sdk中使用mm副单位尽可能避免接入方冲突,但是如果接入方也使用该框架并使用其它副单位是不是就冲突了? HOT 1
- 鸿蒙
- 引入饺子播放器后,横屏切换竖屏后,播放按钮变大,其他控件正常 HOT 3
- 建议使用 Android Jetpack 组件里的 App Startup 库来初始化 HOT 2
- 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.