J'ai un RelativeLayout dans lequel j'ai deux images. Le problème est: l'augmentation d'échelle. Ils sont affichés beaucoup plus grand que le sont censés. Voici ma mise en page:Les images de ma mise en page sont agrandies mais ne le devraient pas. Comment puis-je empêcher les images d'être mises à l'échelle?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gallery_batch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/batch_background">
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/icon_success"
android:id="@+id/view_batch_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:padding="5dp"
android:layout_gravity="center_vertical"/>
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/text_bereits_geladen"
android:layout_toRightOf="@id/view_batch_icon"
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"/>
Quelqu'un peut-il me dire ce que je fais mal ici? Merci!
Réservoir vous! Je stockais quelques graphiques dans le dossier drawables parce que je voulais utiliser la même image pour toutes les résolutions. – notme