Je dois afficher un texte (id- text_view dans le code ci-dessous) en bas à gauche de l'écran. Trouvez ci-dessous l'extrait de code pour le texte.changer la position du texte en bas à gauche sur l'écran tourner android
<?xml version="1.0" encoding="utf-8"?><merge xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center" >
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical|center_horizontal" >
<TextView
android:id="@+id/text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|bottom"
android:text="SampleText"
android:textColor="@android:color/darker_gray" />
</FrameLayout>
<RelativeLayout
android:id="@+id/linear"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ProgressBar
android:id="@+id/progress"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="200dip"
android:layout_height="wrap_content"
android:layout_marginBottom="14dip"
android:layout_marginLeft="30dip"
android:layout_marginRight="30dip"
android:layout_marginTop="14dip"
android:orientation="vertical" />
</RelativeLayout>
Il arrive en bas à gauche, mais seulement pour le mode Portrait. Quand je tourne l'écran en mode paysage le texte reste là, il devrait également être tourné en bas à gauche de l'écran.
S'il vous plaît aidez-moi comment y parvenir sur la rotation de l'écran
poster votre code d'agencement complet – Boopathi
@Boopathi j'ai mis à jour –
J'ai vérifié le code, il fonctionne très bien dans les deux modes – Boopathi