Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/347.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在Android布局上插入列线_Java_Android_Android Layout_Layout_User Interface - Fatal编程技术网

Java 在Android布局上插入列线

Java 在Android布局上插入列线,java,android,android-layout,layout,user-interface,Java,Android,Android Layout,Layout,User Interface,我试图在Android应用程序上插入垂直线,但在如何操作上遇到了问题 我的布局目前设计为表和行布局,已经完成了。有人能建议在布局上插入跨越多个表行的垂直线的最佳方法吗?我不能在背景色之间设置间距,因为最后一个是不同的颜色和虚线。我不确定,但将尝试使用此代码。比如 水平线 <View android:layout_width="fill_parent" android:layout_height="1dip"

我试图在Android应用程序上插入垂直线,但在如何操作上遇到了问题


我的布局目前设计为表和行布局,已经完成了。有人能建议在布局上插入跨越多个表行的垂直线的最佳方法吗?我不能在背景色之间设置间距,因为最后一个是不同的颜色和虚线。

我不确定,但将尝试使用此代码。比如

水平线

        <View
            android:layout_width="fill_parent"
            android:layout_height="1dip"
            android:layout_marginBottom="3dp"
            android:layout_marginTop="3dp"
            android:background="#000000" />

垂直线

        <View
            android:layout_width="1dip"
            android:layout_height="fill_parent"
            android:layout_marginLeft="3dp"
            android:layout_marginRight="3dp"
            android:background="#000000" />


在这里,您可以控制利润,满足您的需求。祝你好运

我不确定,但将尝试使用此代码。比如

水平线

        <View
            android:layout_width="fill_parent"
            android:layout_height="1dip"
            android:layout_marginBottom="3dp"
            android:layout_marginTop="3dp"
            android:background="#000000" />

垂直线

        <View
            android:layout_width="1dip"
            android:layout_height="fill_parent"
            android:layout_marginLeft="3dp"
            android:layout_marginRight="3dp"
            android:background="#000000" />

在这里,您可以控制利润,满足您的需求。祝你好运