J'ai essayé presque tout de Gravity
à alignParentTop
et layout_above
mais rien ne semble fonctionner ici.Comment mettre texte vue au-dessus de l'image et au bas de la mise en page
J'ai un ImageView
et un TextView
J'utilise ViewPager
pour afficher des images différentes et leur text
respective.
Le problème est que, il affiche Text
en haut et l'image après.
Je veux qu'il affiche Image
et en dessous affiche TextView
.
C'est ce que je reçois après avoir ajouté suivant xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/image_view"
android:layout_width="match_parent"
android:layout_height="200dp"
/>
<TextView
android:id="@+id/image_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:text="Image Text"
/>
</RelativeLayout>
me guider Veuillez comment mettre Text
après la Image
Stackoverflow à son meilleur !! Merci beaucoup :) – user2052394