row.xml

<?xml version="1.0" encoding="utf-8"?><androidx.cardview.widget.CardView    xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="wrap_content"    xmlns:app="http://schemas.android.com/apk/res-auto"    app:cardCornerRadius="3dp"    app:cardElevation="3dp"    android:clickable="true"    android:focusable="true"    android:foreground="?android:attr/selectableItemBackground"    app:cardUseCompatPadding="true">



    <RelativeLayout        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:padding="16dp">




        <ImageView            android:layout_width="70dp"            android:layout_height="70dp"            android:id="@+id/imageIv"            android:src="@mipmap/ic_launcher"/>



        <TextView            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:id="@+id/titleTv"            android:text="Title"            android:textSize="22sp"            android:textColor="#000"            android:textStyle="bold"            android:layout_toRightOf="@+id/imageIv"            android:layout_toEndOf="@+id/imageIv"            android:layout_marginLeft="10dp"            android:layout_marginStart="10dp"/>

        <TextView            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:text="Description"            android:id="@+id/descriptionTv"            android:textSize="18sp"            android:textColor="#a9a9a9"            android:layout_toRightOf="@+id/imageIv"            android:layout_toEndOf="@+id/imageIv"            android:layout_marginLeft="10dp"            android:layout_marginStart="10dp"            android:layout_marginTop="5dp"            android:layout_below="@+id/titleTv"            tools:ignore="HardcodedText" />



    </RelativeLayout>


</androidx.cardview.widget.CardView>

Comments

Popular posts from this blog

build.gradal project