Peng Shaolei

Results 3 issues of Peng Shaolei

问题: 设置启用EmptyView后,引用布局的layout_width为‘match_parent’,但是显示的实际宽度为GridLayoutManager(requireContext(), 3)中单个item的宽度,在3.0+的版本中使用未出现该问题。 启用空布局代码: ![image](https://user-images.githubusercontent.com/49141931/190987124-3c115501-376b-4490-a757-b720f98ca1c3.png) 布局: ![image](https://user-images.githubusercontent.com/49141931/190987244-375e9275-6403-4237-8941-eb779941dd7c.png) 样式: ![image](https://user-images.githubusercontent.com/49141931/190987580-d3033be6-5c45-477a-b6ce-2469c6760e93.png)

目的为了降低创建时代码的耦合性,后续可以考虑添加一个“asResult”方法。 扩展方法: ![image](https://user-images.githubusercontent.com/49141931/191309627-6e4b73b3-6822-481b-937b-be4b9ce95b1f.png) 使用: ![image](https://user-images.githubusercontent.com/49141931/191309941-33c3d17d-c4a4-4304-a1b7-c470d777534e.png)

精华

**描述:** 在使用 vvLaserDrawable 设置了扫描线的图片后,图片会错误的加载到扫描框之外的区域。 **现象:** ![image](https://github.com/user-attachments/assets/3f528fc6-03bd-4b27-bfa7-3e7b28e53c20) **相关代码:** ![image](https://github.com/user-attachments/assets/7a00865f-cbeb-4ba4-a241-e1314a90db90)