ImageButton + problème de taille d'image
Bonjour, je suis en train de coder les vues de mes menus d'application. Mon problème est que les découpes d'écran sont grossies à l'affichage alors que je ne touche pas à leur taille (à aucun moment).
Voici un de mes menus les plus simple :
Code:
1 2 3 4 5 6 7
| <?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:background="@drawable/background">
<ImageButton android:id="@+id/quickGame" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/button_quickgame"></ImageButton>
<ImageButton android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/soloMode" android:background="@drawable/button_solomode"></ImageButton>
<ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/settings" android:background="@drawable/button_settings"></ImageButton>
<ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/exitGame" android:background="@drawable/button_quit"></ImageButton>
</LinearLayout> |
J'ai utilisé "wrap_content" partout ce qui devrait faire coller mon bouton à la taille de mon image. Seulement l'image est affichée en beaucoup plus gros que prévu.
Si quelqu'un voit d'où vient l'erreur...
Merci !