title: FrameLayout inside the FrameLayout and positioning FrameLayout right side of the parent FrameLayout?
body: <p>I'm trying create one Framelayout that contains a child Framelayout, I'm not able to position the child Framelayout to the right side of the parent Framelayout!.</p>
  
  <p>I tried with <code>android:foregroundGravity="right"</code> and  <code>android:layout_weight="1"</code> </p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/listView"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" 
      android:layout_weight="1"&gt;    
  
  &lt;com.example.ListViewActivity
          android:id="@+id/list_view"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" &gt;
  &lt;/com.example.ListViewActivity&gt;
  
      &lt;FrameLayout
          android:id="@+id/indexRight"
          android:layout_width="36dp"
          android:layout_height="fill_parent"
          android:layout_gravity="left"
          android:background="@color/white"      
          android:orientation="vertical" &gt;
  
      &lt;/FrameLayout&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>Screen Shot: <img src="https://i.stack.imgur.com/kOrmC.png" alt="enter image description here"></p>
  
  <p>As mentioned in the above image I want to move the white FrameLayout into right.</p>
  
  <p>Thanks</p>