J'essaye d'obtenir mon imageview avec un png draweable pour remplir l'affichage (je me moque de ratios). Cependant, fill_parent ne fonctionne pas, et pour autant que je sache, il n'y a pas d'arrière-plan à définir sur RelativeLayout?android, imageview stretch
Cordialement
RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:onClick="toggleAdvice"
ImageView
android:id="@+id/advice_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/pratbubbla_gron"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
pouvez-vous coller votre code XML Layout ici? – Piyush
supprimer android: layout_alignParentTop = "true" android: layout_alignParentLeft = "true" et essayez avec layout_gravity: "center" – Piyush