J'ai conçu une mise en page XML comme dans cette image:Alignement de la disposition de la table?
je placer également les quatre boutons dans l'écran, mais je ne parviens pas à le faire fonctionner. J'ai essayé tous les changements possibles auxquels je peux penser. Voici le XML de la mise en page:
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="40dp"
android:id="@+id/buttonlayout"
android:layout_alignBottom="@id/framelayout">
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TableRow>
<Button
android:id="@+id/previous"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/previous_icon" />
<Button
android:id="@+id/button_startprint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/print_icon"
android:padding="10dp" />
<Button
android:id="@+id/button_cam"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/cam_icon"
android:padding="10dp" />
<Button
android:id="@+id/next"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/next_icon"
android:hapticFeedbackEnabled="true"/>
</TableRow>
</TableLayout>
</RelativeLayout>
Quelqu'un peut-il m'aider?
salut @ jxgn que vous voulez faire dans Verticalement ???? – itsrajesh4uguys
non. horizontalement – jxgn
salut @ jxgn j'ai ajouté le code dans edit .. check it out .. espérons qu'il vous aidera. – itsrajesh4uguys