summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/row_layout.xml
blob: 1c74476dab70a9962a439b99b13a56836428590f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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>