summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/row_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/row_layout.xml
parent97ff499413e5dae958ac3741616e2ee84a188871 (diff)
Starting to work on recycler view feature
Diffstat (limited to 'app/src/main/res/layout/row_layout.xml')
-rw-r--r--app/src/main/res/layout/row_layout.xml47
1 files changed, 47 insertions, 0 deletions
diff --git a/app/src/main/res/layout/row_layout.xml b/app/src/main/res/layout/row_layout.xml
new file mode 100644
index 0000000..1c74476
--- /dev/null
+++ b/app/src/main/res/layout/row_layout.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="?android:attr/listPreferredItemHeight"
+ android:layout_marginStart="?android:attr/listPreferredItemPaddingLeft"
+ android:layout_marginEnd="?android:attr/listPreferredItemPaddingRight"
+ android:gravity="center_vertical"
+ android:padding="6dip">
+
+<ImageView
+ android:id="@+id/icon"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentTop="true"
+ android:layout_marginEnd="6dip"
+ android:contentDescription="@string/rv_image"
+ android:src="@mipmap/ic_launcher"
+ tools:ignore="MissingConstraints" />
+
+<TextView
+ android:id="@+id/secondLine"
+ android:layout_height="26dip"
+ android:ellipsize="marquee"
+ android:text="@string/rv_description"
+ android:textSize="12sp"
+ app:layout_constraintStart_toEndOf="@id/icon"
+ app:layout_constraintTop_toBottomOf="@id/firstLine"
+ android:layout_width="0dp" />
+
+<TextView
+ android:id="@+id/firstLine"
+ android:layout_height="wrap_content"
+ android:layout_toEndOf="@id/icon"
+ android:gravity="center_vertical"
+ android:text="@string/rv_title"
+ android:textSize="16sp"
+ app:layout_constraintStart_toEndOf="@id/icon"
+ app:layout_constraintEnd_toEndOf="parent"
+ android:layout_width="0dp"
+ tools:ignore="MissingConstraints" />
+
+
+</androidx.constraintlayout.widget.ConstraintLayout>