fengx123

Results 3 issues of fengx123

作者你好,我在activity的getResources方法中重新设置了density,也重写了generateLayoutParams方法重新设置density值,但是依旧会出现局部适配失效的问题,如下图,输入框部分异常变大,且该问题非必现: ![1](https://user-images.githubusercontent.com/9522880/179889799-660a8d0c-f617-418e-89b3-79f0c03badbb.png) ![2](https://user-images.githubusercontent.com/9522880/179889810-499f7155-1bf6-473a-9664-fe119806275b.png) 变大部分的xml中,最上层标签是merge,然后就是我自定义的父布局,重写了generateLayoutParams方法重新设置density值。 ![3](https://user-images.githubusercontent.com/9522880/179890031-73a62432-817c-4801-a307-f441bdd0be8e.jpg) 请问下,是否是我使用的方式不对,需要在每一个viewGroup都重写generateLayoutParams方法?或者有没有其他的方式来避免这个问题

如题,使用头条的适配方案后,.9图不可拉伸的地方感觉也被拉伸了,变得更小了

运行GetQuestionTessAndroid.py的时候21行报错了:question, choices = ocr.ocr_img(img),大神知道是为啥吗?