水平线性布局新线

时间:2014-12-14 06:58:19

标签: android xml android-linearlayout

my problem

我看到了这个答案,但我的问题是: 没有嵌套LinearLayouts,没有办法实现这个目标吗?

1 个答案:

答案 0 :(得分:0)

尝试使用此代码..

<LinearLayout 
xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    >
    <View
        android:layout_width="fill_parent"
        android:layout_height="1.5dp"
        android:background="@color/green"/>
</LinearLayout>