summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/item_layout.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/item_layout.xml')
-rw-r--r--app/src/main/res/layout/item_layout.xml63
1 files changed, 63 insertions, 0 deletions
diff --git a/app/src/main/res/layout/item_layout.xml b/app/src/main/res/layout/item_layout.xml
new file mode 100644
index 0000000..e03e874
--- /dev/null
+++ b/app/src/main/res/layout/item_layout.xml
@@ -0,0 +1,63 @@
+<?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:id="@+id/cv_cardView"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_margin="4dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:foreground="?selectableItemBackground"
+ app:cardCornerRadius="10dp"
+ >
+
+ <RelativeLayout
+ android:id="@+id/rl_wrapper"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:padding="20dp"
+ >
+
+ <ImageView
+ android:id="@+id/iv_image"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_margin="10dp"
+ android:src="@mipmap/ic_launcher_round"
+ android:contentDescription="@string/rv_image" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_alignTop="@id/iv_image"
+ android:layout_alignBottom="@id/iv_image"
+ android:layout_toEndOf="@id/iv_image"
+ android:orientation="vertical"
+ >
+
+ <TextView
+ android:id="@+id/tv_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="10dp"
+ android:text="@string/rv_title"
+ android:textColor="@color/strong_pink"
+ android:textSize="20sp"/>
+
+ <TextView
+ android:id="@+id/tv_description"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="10dp"
+ android:text="@string/rv_description"
+ android:textColor="@color/slightly_desaturated_magenta"
+ android:textSize="20sp"
+ />
+
+ </LinearLayout>
+
+
+ </RelativeLayout>
+</androidx.cardview.widget.CardView> \ No newline at end of file