如何在 Android 中设置表格布局样式

发布于 2024-09-26 02:57:51 字数 194 浏览 0 评论 0原文

谁能告诉我如何在 android 中的 TableLayout 中添加边框,如下所示?

http://developer.android.com/images/table_layout.png

Can anyone tell me how to add a boarder to a TableLayout in android, like the one below?

http://developer.android.com/images/table_layout.png

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

指尖上的星空 2024-10-03 02:57:51

表格布局不显示使用边框使用

<View android:id="@+id/View01" android:layout_height="1dip"
    android:layout_width="fill_parent" android:background="@color/blue_text"></View>

垂直线的视图控件给出宽度

table layout don't display the use border use view control

<View android:id="@+id/View01" android:layout_height="1dip"
    android:layout_width="fill_parent" android:background="@color/blue_text"></View>

for vertical line give width

柠栀 2024-10-03 02:57:51

TableLayout 容器不显示其行、列或单元格的边框线。您无法向 TableLayout Javadoc

TableLayout containers do not display border lines for their rows, columns, or cells. You cannot add border to table layout cells which is mentioned in the TableLayout Javadoc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文