Explorar o código

Add image to card_game.xml to preview in the Layout Editor

PabloG02 %!s(int64=3) %!d(string=hai) anos
pai
achega
1957b7e6cc
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/android/app/src/main/res/layout/card_game.xml

+ 2 - 1
src/android/app/src/main/res/layout/card_game.xml

@@ -38,7 +38,8 @@
                 <ImageView
                     android:id="@+id/image_game_screen"
                     android:layout_width="match_parent"
-                    android:layout_height="match_parent" />
+                    android:layout_height="match_parent"
+                    tools:src="@drawable/default_icon" />
 
             </com.google.android.material.card.MaterialCardView>