开发者

How can we set the border to a list item in list view

开发者 https://www.devze.com 2023-01-07 11:18 出处:网络
By Default in the Listview,focus will come on the list item. Instead of that, can I get only the border to the list item?

By Default in the Listview,focus will come on the list item. Instead of that, can I get only the border to the list item?

I can achieve this by using a transparent image as a list selector. Is there any other simplest way to achieve this req开发者_StackOverflow社区uirement?


There is an android:drawSelectorOnTop XML property that might work for you.

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.

I would also try if I can have a selector with drawables "@null".

0

精彩评论

暂无评论...
验证码 换一张
取 消