aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/item_layout.xml
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-02-16 11:37:58 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-02-16 11:37:58 +0100
commit7288d5ae154f895d71727acc92828aa555e8108b (patch)
tree367d04058f951c24a1bc4778b85873df89bf67f8 /app/src/main/res/layout/item_layout.xml
parent97ff499413e5dae958ac3741616e2ee84a188871 (diff)
Starting to work on recycler view feature
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