android:drawSelectorOnTop使用方法

来源:互联网 发布:短信群发软件哪个好 编辑:程序博客网 时间:2024/04/27 16:42

When set to true, the selector will be drawn over the selecteditem. Otherwise the selector is drawn behind the selected item. Thedefault value is false.


实际使用的时候,如何设置为true,配合listSelector使用,根据选择器,在selected Item上面覆盖一层绘制

<style name="PhotoGridLayout">    <item name="android:drawSelectorOnTop">true</item>    <item name="android:listSelector">@drawable/list_selector</item></style>


0 0
原创粉丝点击