-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathactivity_main.xml
More file actions
59 lines (53 loc) · 2.34 KB
/
activity_main.xml
File metadata and controls
59 lines (53 loc) · 2.34 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
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvTodos"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/linearLayoutCompat"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="3"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/etTodo"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginHorizontal="8dp"
android:layout_weight="2"
android:hint="@string/enter_todo_text"
android:inputType="textCapSentences"
tools:ignore="TextContrastCheck" />
<Button
android:id="@+id/btnAddTodo"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginHorizontal="8dp"
android:layout_weight="1"
android:text="@string/add" />
</androidx.appcompat.widget.LinearLayoutCompat>
<TextView
android:id="@+id/textView"
android:layout_width="294dp"
android:layout_height="165dp"
android:gravity="center"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.433" />
</androidx.constraintlayout.widget.ConstraintLayout>