开发者

Android - divider between items in vertical layout [duplicate]

开发者 https://www.devze.com 2023-03-25 20:09 出处:网络
This question already has answers here:开发者_JAVA百科 Closed 10 years ago. Possible Duplicate: Android Drawing Separator/Divider Line in Layout?
This question already has answers here: 开发者_JAVA百科 Closed 10 years ago.

Possible Duplicate:

Android Drawing Separator/Divider Line in Layout?

I am making something similar to a list view, without actually making a list view...

I have a bunch of text views in a vertical layout, and I am wondering if it is possible to get some sort of divider line in between them. The line dividers like they have in List Views..

Any help?


You can use a textview to create a divider line

Example:

<TextView          
      android:layout_width="fill_parent" 
      android:layout_height="1px" 
      android:background="#DADADA" />


You can insert View with background of any color you want and

layout_height = "1dp" (or more if necesary) and

layout_width="fill_parent".

0

精彩评论

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