Размести все красива , важно чтобы textView с данными были снизу , так же убери и конки…
- User
Размести все красива , важно чтобы textView с данными были снизу , так же убери и конки в общем сделай что-нибудь необычног и привлекательно для пользователя : <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="200dp" app:cardCornerRadius="4dp" app:cardElevation="2dp">
code<RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <ImageView android:id="@+id/cardBackgroundImage" android:layout_width="match_parent" android:layout_height="match_parent" android:adjustViewBounds="true" android:scaleType="centerCrop" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:minHeight="72dp" android:orientation="horizontal" android:weightSum="1"> <ImageView android:id="@+id/icon1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0.2" android:src="@drawable/icon1" /> <TextView android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="0.6" android:text="Title" android:textStyle="bold" android:textAlignment="center" android:textColor="@color/white"/> <ImageView android:id="@+id/icon2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0.2" android:src="@drawable/icon2" /> </LinearLayout> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentStart="true" android:layout_alignParentTop="true" android:text="Genre" android:textStyle="bold" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/cardBackgroundImage" android:layout_alignParentTop="true" android:layout_alignParentEnd="true" android:text="Rating" android:textStyle="bold" /> </RelativeLayout> - Assistant