My layout conains two linearlayout.
As below:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<LinearLayout
android:id="@+id/l1"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="right"
android:orientation="vertical" >
<Button
android:id="@+id/b1"
android:layout_width="18dp"
android:layout_height="match_parent"
android:text=" ﹒﹒﹒"
android:textSize="20dp" />
</LinearLayout>
<LinearLayout
android:id="@+id/l2"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#000000"
android:orientation="vertical" >
</LinearLayout>
</LinearLayout>
There are l1 and l2.
I want let my menu bar only belong l1 and show on l1.
But not show cross over l1 and l2.
How can I do it?