Giter Site home page Giter Site logo

Comments (5)

imhappyok avatar imhappyok commented on June 2, 2024

应该说是系统的usb权限申请弹窗,系统应该是1024*600的,我在清单文件配置宽度512,感觉是整体比系统默认情况放大了一倍

from androidautosize.

imhappyok avatar imhappyok commented on June 2, 2024

dialog的文字大小依然无法解决,这是个大问题。
就相当于是第三方库里面的控件是使用正常尺寸来写的,我们自己的项目配置了第三方库之后,它的界面里面的尺寸都有问题了,我1024x600的平板,dpi为160,但是我的ui图设置宽为512,那么我的清单文件配置512,意味着所有尺寸放大两倍。
现在第三方库里有一控件设置宽度是当前屏幕最大宽度dp,那么我使用就成了当前屏幕(最大dp 乘以2)。然后超出屏幕。。。

from androidautosize.

imhappyok avatar imhappyok commented on June 2, 2024

然后总结了一些使用者的解决方式:
1.想办法自定义这个第三方控件(但是有的没办法自定义,源码里面私有了)
2.把当前activity取消适配,用其他方式适配(但是当前界面里很多代码都是使用这种方式,感觉改动量很大,对于使用少的可以使用这种方式)
3.让自己去改项目尺寸去适配三方库的(肯定不行,如果使用多个库,怎么适配)
4.有人总结可以修改dialog的theme,确实尺寸改了,但是里面的文字大小有的改不了,导致显示很奇怪。(可以视情况将就)
5.有人说在show前,先取消适配,show完再配置(发现不行,show前取消适配要不无效,要不有效后自己的其他控件显示不正常)
提个想法,看行不行(就是可以单独对控件做取消适配的操作):
一般使用dialog或者toast,或者其他基本都需要传activity之类的,但是使用了适配之后的acitivity传过去对这些有影响,我能不能传一个未适配前的acitvity过去呢,不知道AutoSize能不能提供相应函数获取,同时不影响其他逻辑

from androidautosize.

fengx123 avatar fengx123 commented on June 2, 2024

别用dp单位,用其他的副单位

from androidautosize.

Hoppen2020 avatar Hoppen2020 commented on June 2, 2024

我也有相同的问题 会导致系统弹框的大小显示异常

from androidautosize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.