|
@@ -0,0 +1,62 @@
|
|
|
|
|
+<?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:id="@+id/tasks_fragment"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ tools:context=".ui.main.TasksFragment">
|
|
|
|
|
+
|
|
|
|
|
+ <EditText
|
|
|
|
|
+ android:id="@+id/tasks_fragment_input"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginTop="@dimen/_32sdp"
|
|
|
|
|
+ android:ems="10"
|
|
|
|
|
+ android:hint="@string/tasks_fragment_enter_a_new_task"
|
|
|
|
|
+ android:inputType="textCapSentences"
|
|
|
|
|
+ android:padding="@dimen/_12sdp"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
+ tools:ignore="Autofill,LabelFor" />
|
|
|
|
|
+
|
|
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
+ android:id="@+id/tasks_fragment_list"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
|
+ android:layout_marginTop="@dimen/_8sdp"
|
|
|
|
|
+ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tasks_fragment_sort"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tasks_fragment_input"
|
|
|
|
|
+ tools:listitem="@layout/task_fragment_list_item" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tasks_fragment_sort"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="@dimen/_16sdp"
|
|
|
|
|
+ android:layout_marginLeft="@dimen/_16sdp"
|
|
|
|
|
+ android:layout_marginBottom="@dimen/_8sdp"
|
|
|
|
|
+ android:padding="@dimen/_12sdp"
|
|
|
|
|
+ android:text="@string/tasks_fragment_sort"
|
|
|
|
|
+ android:textSize="@dimen/_18ssp"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tasks_fragment_clear"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginEnd="@dimen/_16sdp"
|
|
|
|
|
+ android:layout_marginRight="@dimen/_16sdp"
|
|
|
|
|
+ android:layout_marginBottom="@dimen/_8sdp"
|
|
|
|
|
+ android:padding="@dimen/_12sdp"
|
|
|
|
|
+ android:text="@string/tasks_fragment_clear_completed_tasks"
|
|
|
|
|
+ android:textSize="@dimen/_18ssp"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
|
+
|
|
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|