J'essayais de changer l'alignement du texte. Voilà ce que j'ai:Comment aligner le texte à droite
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<TableRow>
<TextView
android:id="@+id/ctime"
android:layout_gravity="right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="50"
android:text="time" />
</TableRow>
<TableRow>
<TextView
android:id="@+id/cstatus"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_weight="100"
android:text="status" />
</TableRow>
</TableLayout>
</LinearLayout>
Tout est aligné à gauche dans la sortie même après la mise en android:layout_gravity="right"
. Ceci est une partie de la mise en page, car je ne peux pas poster toute la mise en page.
[question similaire] (http://stackoverflow.com/questions/5711046/right-aligning-text-in-android) –