-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtodo_item.xml
More file actions
49 lines (45 loc) · 1.8 KB
/
todo_item.xml
File metadata and controls
49 lines (45 loc) · 1.8 KB
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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_weight="10"
android:paddingVertical="16dp">
<TextView
android:id="@+id/tvTodoId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingHorizontal="14dp"
android:text="@string/_1"
android:textSize="20sp" />
<TextView
android:id="@+id/tvTodoText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginStart="0dp"
android:layout_marginEnd="0dp"
android:layout_toStartOf="@+id/btnDelete"
android:layout_toEndOf="@+id/tvTodoId"
android:paddingEnd="6dp"
android:text="@string/some_todo_text"
android:textColor="@color/black"
android:textSize="20sp"
tools:ignore="RtlSymmetry" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/btnDelete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_marginStart="10dp"
android:layout_marginTop="0dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="0dp"
android:background="?android:selectableItemBackground"
android:foregroundGravity="right"
android:src="@drawable/ic_delete"
tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
</RelativeLayout>