TableRow division
Asked Answered
A

1

2

Well, my app has a tablelayout with a lot of tablerows, but how can I put a division between them? Eg: a tablerow, after that a line, after that another tablerow and so on. Is there some property for that?

Arrest answered 10/5, 2012 at 22:7 Comment(0)
S
13

There is in Android 3.0 and forward. On your TableLayout:

android:divider="?android:attr/dividerHorizontal"
android:showDividers="middle"

Before Android 3.0 you should be able to use dummy views as dividers between each row like this:

<View android:layout_width="match_parent"
      android:layout_height="1dp"
      android:background="?android:attr/listDivider" />
Stationer answered 10/5, 2012 at 23:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.