title: How to embed one layout inside another in my case?
body: <p>If I have a layout called <strong><em>bottom.xml</em></strong>, </p>
  
  <p><em><strong>bottom.xml:</em></strong>(simply contain a textview and edit text view)</p>
  
  <pre><code> &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center_horizontal"
          android:orientation="vertical"
       &gt;
          &lt;TextView 
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center_horizontal"
              android:gravity="center_horizontal" 
              android:text="@string/username"
  
          /&gt;
  
          &lt;EditText 
              android:id="@+id/name"
  
              android:layout_width="120dip"
              android:layout_height="50dip"
              android:layout_gravity="center_horizontal"     
          /&gt;
   &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Is there any way to <strong>embed</strong> the above <strong><em>bottom.xml</em></strong> layout inside other layouts instead of repeatly writing the same code in several layout files (when other layouts have a part which contains the same layout as bottom.xml)?</p>
  
  <p>For example, if my <strong><em>admin.xml</em></strong> layout also contain part of the layout which looks exactly the same as <strong><em>bottom.xml</em></strong>, how to just embed the <strong><em>bottom.xml</em></strong> inside <strong><em>admin.xml</em></strong> instead of writing the same code again?</p>
  
  <p><em><strong>admin.xml:</em></strong></p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
       &gt;
       ...
       ...
          &lt;!--How to embed bottom.xml here--&gt;
       ...
   &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>If there is no way to do it in Android, what could be the workaround??</p>
  
  <p><strong>----------Update-----------</strong></p>
  
  <p>Like @xevincent suggested, I can reuse the <strong><em>bottom.xml</em></strong> by use <code>&lt;include&gt;</code> tag, </p>
  
  <p>But How to change the id of the elements inside the resued layout? </p>
  
  <p>For example, insdie <strong><em>bottom.xml</em></strong>, I would like to change the id of <code>&lt;editText android:id="@+id/name"&gt;</code> to  <code>&lt;editText android:id="@+id/other_name"&gt;</code> when I reuse the <strong><em>bottom.xml</em></strong> layout in other layout, how to change the id ?</p>