开发者

How to draw horizontal line in ListView?

开发者 https://www.devze.com 2023-01-06 18:59 出处:网络
Is there any better way to draw a black horizontal line than defining l开发者_StackOverflowayout with fixed height and black background?The ListView allows you to define a divider drawable. See the an

Is there any better way to draw a black horizontal line than defining l开发者_StackOverflowayout with fixed height and black background?


The ListView allows you to define a divider drawable. See the android documentation on the ListView for more information.

The Divider will be drawn after each item in your list without the need for you to do anything about it. You can use a drawable or a color as the divider and you can also specify the divider height for the whole list.


API Demos List5.java demonstrates including separators, using android.R.layout.simple_expandable_list_item_1

0

精彩评论

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

关注公众号