如果你的项目是在平板是适配使用该方案,加载dialog直接会导致整个UI错乱,必须要调用 AutoSize.autoConvertDensityOfGlobal((Activity) context);

Author: Xxj-starCreated May 7, 2025Updated May 7, 2025

Image

Image

Image我这里加在Manifest文件中设置的 平板固定横屏android:screenOrientation="landscape"

Source: JessYanCoding/AndroidAutoSize