Android:在 GridView 中禁用突出显示 [英] Android: Disable highlighting in GridView
本文介绍了Android:在 GridView 中禁用突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在单击 GridView 中的项目时关闭橙色突出显示?
How can I turn off the orange highlight when clicking an item in a GridView?
我无法在文档中或通过测试找到解决方案.
I haven't been able to find a solution in the documentation or through testing.
推荐答案
在 XML 布局文件的 GridView
元素中使用 android:listSelector="#00000000"
.
Use android:listSelector="#00000000"
in your GridView
element in your XML layout file.
这篇关于Android:在 GridView 中禁用突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文