嗯,我的应用程序有一个包含很多表格行的表格布局,但是我如何在它们之间设置一个划分呢?例如:一个tablerow,然后是一行,然后是另一个tablerow,依此类推。有没有什么属性可以用来做这个?
发布于 2012-05-11 07:30:28
在Android3.0和更高版本中有。在您的TableLayout上:
android:divider="?android:attr/dividerHorizontal"
android:showDividers="middle"在Android3.0之前,您应该能够使用虚拟视图作为每行之间的分隔符,如下所示:
<View android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider" />https://stackoverflow.com/questions/10542852
复制相似问题