答案 0 :(得分:0)
Use frame layout as a main layout .It will overlaps your layout.
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#a8a3841a"
>
<LinearLayout
android:id="@+id/wraper"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:background="#e7a3841a"
android:orientation="horizontal">
<View
android:id="@+id/vwVerticalColourBar"
android:layout_width="5dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:background="@color/grey2"
android:gravity="center_vertical"/>
<TextView
android:id="@+id/label"
style="@style/item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginLeft="8dp"
android:gravity="left"/>
<TextView
android:id="@+id/label2"
style="@style/subitem"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginLeft="8dp"
android:gravity="left"/>
</LinearLayout>
</FrameLayout>
希望它会对你有所帮助。