Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面的代码是我用来在我的应用程序中创建 GridView 的代码。但问题是列表选择器的宽度和高度不等于图标的宽度和高度(图 1)。Image #2 是我想要完成的。
尝试使用
android:listSelector="@null"
或者您可以创建自己的选择器。