在测试兼容性时候,部分机型,比如联想和一加等手机,在使用Gridview的时候,会默认四周有默认边距,10dp左右。

 

这时候需要设置 

 

android:listSelector="@android:color/transparent"

 

默认选择为透明,间距就消失了。

相关文章:

  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-27
  • 2021-08-11
  • 2021-05-27
  • 2021-05-20
  • 2022-12-23
  • 2021-06-29
  • 2021-06-18
相关资源
相似解决方案