<?xml version="1.0" encoding="utf-8"?> <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="wrap_content" android:layout_marginVertical="10dp" app:cardBackgroundColor="@color/black" app:cardCornerRadius="10dp" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:padding="10dp"> <RelativeLayout android:layout_width="wrap_content" android:layout_height="match_parent"> <ImageView android:id="@+id/eventImg" android:layout_width="90dp" android:layout_height="90dp" android:background="@drawable/rounded_corner" android:backgroundTint="@color/black" android:layout_centerInParent="true" android:scaleType="centerCrop" /> <ProgressBar android:id="@+id/eventImgProgressBar" android:layout_width="30dp" android:layout_height="30dp" android:layout_centerInParent="true" android:indeterminate="true" android:indeterminateTint="@color/green" /> </RelativeLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <TextView android:id="@+id/eventName" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginHorizontal="10dp" android:layout_weight="0.7" android:singleLine="true" android:ellipsize="marquee" android:marqueeRepeatLimit ="marquee_forever" android:focusable="true" android:focusableInTouchMode="true" android:scrollHorizontally="true" android:textColor="@color/gray_label" android:textSize="18sp" android:textStyle="bold" /> <TextView android:id="@+id/eventDate" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="end|center_vertical" android:layout_weight="0.3" android:textAlignment="viewEnd" android:textColor="@color/gray_label" android:textStyle="italic" android:ellipsize="marquee" android:marqueeRepeatLimit ="marquee_forever" android:focusable="true" android:focusableInTouchMode="true" android:scrollHorizontally="true" android:singleLine="true"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginVertical="10dp" > <TextView android:id="@+id/eventVenue" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="0.7" android:layout_marginHorizontal="10dp" android:textColor="@color/gray_label" android:textSize="18sp" android:ellipsize="marquee" android:marqueeRepeatLimit ="marquee_forever" android:focusable="true" android:focusableInTouchMode="true" android:scrollHorizontally="true" android:singleLine="true" /> <TextView android:id="@+id/eventTime" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="0.3" android:layout_gravity="end|center_vertical" android:textAlignment="viewEnd" android:textColor="@color/gray_label" android:textStyle="italic" android:ellipsize="marquee" android:marqueeRepeatLimit ="marquee_forever" android:focusable="true" android:focusableInTouchMode="true" android:scrollHorizontally="true" android:singleLine="true" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <TextView android:id="@+id/eventGenre" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:layout_marginHorizontal="10dp" android:textColor="@color/gray_label" android:textSize="18sp" android:ellipsize="marquee" android:marqueeRepeatLimit ="marquee_forever" android:focusable="true" android:focusableInTouchMode="true" android:scrollHorizontally="true" android:singleLine="true" /> <ImageView android:id="@+id/markFav" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:background="@drawable/heart_outline" /> </LinearLayout> </LinearLayout> </LinearLayout> </androidx.cardview.widget.CardView>