2
那麼,我的應用程序有一個桌面佈局與很多tablerows,但我怎麼能在他們之間劃分?例如:一張表,之後的一行,之後的另一張表,等等。這有一些財產嗎?TableRow部門
那麼,我的應用程序有一個桌面佈局與很多tablerows,但我怎麼能在他們之間劃分?例如:一張表,之後的一行,之後的另一張表,等等。這有一些財產嗎?TableRow部門
有在Android 3.0和轉發。在您TableLayout:
android:divider="?android:attr/dividerHorizontal"
android:showDividers="middle"
Android 3.0的之前,您應該可以使用虛擬視圖作爲分隔每行之間是這樣的:
<View android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider" />