When
set to true, the selector will be drawn over the selected item. Otherwise the selector is drawn behind the selected item. The default value is false.
android:drawSelectorOnTop="true"
android:drawSelectorOnTop="false" 点击某条记录不放,颜色会在记录的后面,成为背景色,但是记录内容的文字是可见的
本文介绍了在Android中如何使用属性android:drawSelectorOnTop来调整点击选择器的位置。当该属性设置为true时,选择器会被绘制在所选项目的顶部,可能会遮挡文字;而设置为false时,则会在所选项目下方作为背景色出现,确保文字始终可见。
608

被折叠的 条评论
为什么被折叠?



