Измени : оставь формат карточки , но добавь 2 иконки ближе к нижнему краю . сделай…
- User
Измени : оставь формат карточки , но добавь 2 иконки ближе к нижнему краю . сделай фоновое изображение карточки.<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" android:layout_marginBottom="8dp" android:backgroundTint="@color/transparent">
<androidx.cardview.widget.CardView android:layout_width="150dp" android:layout_height="200dp" android:layout_marginStart="240dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" android:layout_marginBottom="8dp" android:elevation="2dp" > <ImageView android:id="@+id/right_image" android:layout_width="match_parent" android:layout_height="match_parent" android:adjustViewBounds="true" android:rotationX="0" android:scaleType="centerCrop" /> </androidx.cardview.widget.CardView> <androidx.cardview.widget.CardView android:layout_width="150dp" android:layout_height="200dp" android:layout_marginStart="5dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" android:layout_marginBottom="8dp" android:elevation="2dp" > <ImageView android:id="@+id/left_image" android:layout_width="match_parent" android:layout_height="match_parent" android:adjustViewBounds="true" android:scaleType="centerCrop" /> </androidx.cardview.widget.CardView> <androidx.cardview.widget.CardView android:layout_width="150dp" android:layout_height="200dp" android:layout_marginStart="120dp" android:layout_marginTop="4dp" android:layout_marginEnd="4dp" android:layout_marginBottom="8dp" android:elevation="10dp"> <ImageView android:id="@+id/middle_image" android:layout_width="match_parent" android:layout_height="match_parent" android:adjustViewBounds="true" android:scaleType="centerCrop" /> </androidx.cardview.widget.CardView></androidx.cardview.widget.CardView>
- Assistant
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" android:layout_marginBottom="8dp" android:background="@drawable/card_background">
<androidx.cardview.widget.CardView android:layout_width="150dp" android:layout_height="200dp" android:layout_marginStart="240dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" android:layout_marginBottom="8dp" android:elevation="2dp"> <ImageView android:id="@+id/right_image" android:layout_width="match_parent" android:layout_height="match_parent" android:adjustViewBounds="true" android:scaleType="centerCrop" /> </androidx.cardview.widget.CardView> <ImageView android:id="@+id/icon1" android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon1" android:layout_marginBottom="8dp" android:layout_gravity="center_horizontal|bottom"/> <ImageView android:id="@+id/icon2" android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon2" android:layout_marginBottom="8dp" android:layout_gravity="center_horizontal|bottom"/> <androidx.cardview.widget.CardView android:layout_width="150dp" android:layout_height="200dp" android:layout_marginStart="5dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" android:layout_marginBottom="8dp" android:elevation="2dp"> <ImageView android:id="@+id/left_image" android:layout_width="match_parent" android:layout_height="match_parent" android:adjustViewBounds="true" android:scaleType="centerCrop" /> </androidx.cardview.widget.CardView> <androidx.cardview.widget.CardView android:layout_width="150dp" android:layout_height="200dp" android:layout_marginStart="120dp" android:layout_marginTop="4dp" android:layout_marginEnd="4dp" android:layout_marginBottom="8dp" android:elevation="10dp"> <ImageView android:id="@+id/middle_image" android:layout_width="match_parent" android:layout_height="match_parent" android:adjustViewBounds="true" android:scaleType="centerCrop" /> </androidx.cardview.widget.CardView></androidx.cardview.widget.CardView>
- User
что ты сделал?
- Assistant
Я изменил код, добавив фоновое изображение для карточки и две иконки ближе к нижнему краю карточки. Я также изменял некоторые атрибуты в коде, чтобы достичь этого внешнего вида.