<?xml version="1.0" encoding="utf-8"?> <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/card_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginLeft="8dp" android:layout_marginTop="4dp" android:layout_marginRight="8dp" android:layout_marginBottom="4dp" card_view:cardCornerRadius="4dp"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:padding="8dp"> <ImageView android:id="@+id/img_item_photo" android:layout_width="75dp" android:layout_height="75dp" android:layout_alignParentTop="true" android:layout_marginTop="14dp" android:layout_marginBottom="4dp" android:scaleType="centerCrop" tools:src="@color/colorAccent" /> <TextView android:id="@+id/tv_item_name" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="31dp" android:layout_marginLeft="31dp" android:layout_marginTop="16dp" android:layout_marginRight="16dp" android:layout_marginBottom="8dp" android:layout_toEndOf="@id/img_item_photo" android:layout_toRightOf="@id/img_item_photo" android:textSize="16sp" android:textStyle="bold" tools:text="@string/apps_name" /> <TextView android:id="@+id/tv_item_status" android:layout_width="195dp" android:layout_height="wrap_content" android:layout_below="@id/tv_item_name" android:layout_marginStart="36dp" android:layout_marginLeft="36dp" android:layout_marginTop="5dp" android:layout_marginRight="16dp" android:layout_toEndOf="@id/img_item_photo" android:layout_toRightOf="@id/img_item_photo" android:ellipsize="end" android:maxLines="5" android:textAlignment="center" android:textStyle="bold" tools:text="@string/app_status" /> <TextView android:id="@+id/tv_item_malware" android:layout_width="196dp" android:layout_height="18dp" android:layout_below="@+id/tv_item_status" android:layout_marginStart="36dp" android:layout_marginLeft="36dp" android:layout_marginTop="4dp" android:layout_marginRight="16dp" android:layout_toEndOf="@id/img_item_photo" android:layout_toRightOf="@id/img_item_photo" android:ellipsize="end" android:maxLines="5" android:textAlignment="center" tools:text="@string/app_malware" /> <Button android:id="@+id/btn_set_detail" style="@style/Widget.AppCompat.Button.Colored" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/tv_item_malware" android:layout_marginStart="0dp" android:layout_marginTop="6dp" android:layout_toEndOf="@+id/img_item_photo" android:text="@string/detail" android:textSize="12sp" /> </RelativeLayout> </androidx.cardview.widget.CardView>