Comment intégrer une mise en page à l'intérieur d'une autre dans mon cas?

Si j'ai un modèle appelé bottom.xml,

bottom.xml:(contiennent simplement un textview et de modifier l'affichage du texte)

 <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"
     >
        <TextView 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:gravity="center_horizontal" 
            android:text="@string/username"

        />

        <EditText 
            android:id="@+id/name"

            android:layout_width="120dip"
            android:layout_height="50dip"
            android:layout_gravity="center_horizontal"     
        />
 </LinearLayout>

Est-il possible de intégrer ci-dessus bottom.xml mise en page à l'intérieur d'autres mises en page au lieu de repeatly d'écrire le même code dans plusieurs fichiers de mise en page (quand d'autres modèles ont une partie qui contient la même disposition que bottom.xml)?

Par exemple, si mon admin.xml disposition également contenir une partie de la mise en page qui ressemble exactement le même que bottom.xml, savoir comment intégrer la bottom.xml à l'intérieur de admin.xml au lieu d'écrire de nouveau le même code?

admin.xml:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
     >
     ...
     ...
        <!--How to embed bottom.xml here-->
     ...
 </LinearLayout>

Si il n'y a aucun moyen de le faire sous Android, ce qui pourrait être la solution??

----------Mise à jour-----------

Comme @xevincent suggéré, je peux réutiliser les bottom.xml par l'utilisation <include> tag,

Mais Comment faire pour changer les id des éléments à l'intérieur de la resued mise en page?

Par exemple, insdie bottom.xml, je voudrais changer l'id de <editText android:id="@+id/name"> à <editText android:id="@+id/other_name"> quand je réutiliser le bottom.xml mise à disposition d'autres, comment faire pour changer l'id ?

Solution Possible à votre "mise à jour": stackoverflow.com/questions/3421864/...

OriginalL'auteur Leem | 2011-07-08