blob: 04aba37ec6af54f04577ed5cba7b49bff5621aa6 (
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
48
49
50
51
52
53
54
55
|
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:focusable="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:id="@+id/card_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="@color/black"
tools:text="Card Title"/>
<TextView
android:id="@+id/card_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="3"
tools:text="Card detailed description\nmultiline\n3 lines tops."/>
<com.google.android.material.chip.ChipGroup
android:id="@+id/labels"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp" />
<TextView
android:id="@+id/card_due_date"
android:layout_width="wrap_content"
android:layout_marginTop="8dp"
android:gravity="center_vertical"
android:minLines="0"
android:maxLines="1"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/calendar_blank_grey600_24dp"
android:drawableStart="@drawable/calendar_blank_grey600_24dp"
android:drawablePadding="4dp"
android:padding="4dp"
tools:text="in 16 days"
android:background="@drawable/due_tomorrow_background"/>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
|