LiXiaoHui

Results 5 comments of LiXiaoHui

您好,我们也在做折叠屏,发现修改了屏幕分辨率后,只有recyclerview这类重新加载数据的布局生效,原来界面中的button等没有改过的控件会被放大或者缩小,比例失衡 可以使用 adb shell wm size 2200x2480 adb shell wm size 1148x2480 adb shell wm size reset 来模拟折叠屏效果,希望作者可以提供一些思路

> @lixiaohui8636 折叠屏你怎么适配的 按照作者思路,设置Density后强制重新刷新布局

> > > @lixiaohui8636 折叠屏你怎么适配的 > > > > > > 按照作者思路,设置Density后强制重新刷新布局 > > 你好,你是怎么刷新的,我这边刷新没效果呀。能看下刷新代码吗?谢谢! @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); //这里判断折叠屏后,重新刷新数据 }

> > > > > @lixiaohui8636 折叠屏你怎么适配的 > > > > > > > > > > > > 按照作者思路,设置Density后强制重新刷新布局 > > > > > > > > > 你好,你是怎么刷新的,我这边刷新没效果呀。能看下刷新代码吗?谢谢!...

I found a way. Select the filter button at the bottom, 1. Make sure it is selected ![image](https://user-images.githubusercontent.com/19178735/203464338-c3a3ca2f-7e01-4b22-89b7-c4d12482d355.png) 2. Exit the software 3. Restart the software. At this time, the...