android - Android 中的边距

标签 android android-layout

我想在我的应用程序的表格布局中显示虚线边距。 有没有可能? 如果是那么如何..

最佳答案

然后试试这个

<TableRow android:layout_height="wrap_content" android:id="@+id/tableRow1" android:background="@drawable/dot"
    android:layout_width="fill_parent">

    <TextView android:layout_height="wrap_content"
        android:layout_width="wrap_content" android:text="Your text"></TextView>

</TableRow>

我已经在表格行中设置了背景虚线图

关于android - Android 中的边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5028186/

相关文章:

android - 以编程方式设置自定义组件高度/宽度

android - 如何设计可调整大小的 ViewPager 画廊?

android - 使部分 TextView 可点击(不是 url)

android - 如何使用谷歌地图使安卓应用离线?或使用谷歌地图下载 Android 应用程序中的 map 区域以供离线使用?

java - 如何在android中实现客户端服务器来制作BINGO游戏,但不用于聊天应用程序

android - 在 WebView 中加载 gif 不适应 WebView

xml - android的xml中的梯形阴影

android - 无法将 contextImp 转换为 Activity 错误?

android - Cordova 中的白名单 (Android)

android - 委派经理是一个好的设计理念吗?