6
Ajouter une image d'arrière-plan à la forme dans XML Android
Comment ajouter une image d'arrière-plan à une forme? Le code que j'ai essayé ci-dessous mais sans succès: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" android:padding="10dp"> //here is where i need to set the image <solid android:color="@drawable/button_image"/> <corners android:bottomRightRadius="5dp" android:bottomLeftRadius="5dp" android:topLeftRadius="5dp" android:topRightRadius="5dp"/> </shape>
148
android
android-xml