<?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" android:fitsSystemWindows="true" tools:context=".task.AddSubTaskFragment"> <androidx.appcompat.widget.Toolbar android:id="@+id/toolbarChat" android:layout_width="0dp" android:layout_height="wrap_content" android:background="?attr/colorPrimaryContainer" android:elevation="0dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:orientation="horizontal" android:paddingStart="16dp" android:paddingEnd="16dp"> <ImageButton android:id="@+id/buttonBack" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="?attr/selectableItemBackground" android:contentDescription="@string/turn_back" android:src="@drawable/baseline_arrow_back_24" /> <TextView android:id="@+id/nameToolAddTask" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:text="@string/create_new_task" android:textColor="@color/Black" android:textSize="20sp" android:textStyle="bold" /> </LinearLayout> </androidx.appcompat.widget.Toolbar> <androidx.core.widget.NestedScrollView android:layout_width="0dp" android:layout_height="0dp" android:padding="16dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/toolbarChat"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:dividerPadding="8dp" android:orientation="vertical" android:showDividers="middle"> <com.google.android.material.textfield.TextInputLayout android:id="@+id/subtaskNameText" style="@style/Widget.Material3.TextInputLayout.FilledBox" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/task_name"> <com.google.android.material.textfield.TextInputEditText android:id="@+id/taskName" android:inputType="textCapSentences" android:layout_width="match_parent" android:layout_height="wrap_content" /> </com.google.android.material.textfield.TextInputLayout> <com.google.android.material.textfield.TextInputLayout android:id="@+id/taskDescriptionTextField" style="@style/Widget.Material3.TextInputLayout.FilledBox" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/task_description" > <com.google.android.material.textfield.TextInputEditText android:id="@+id/taskDescription" android:inputType="textCapSentences" android:layout_width="match_parent" android:layout_height="wrap_content" /> </com.google.android.material.textfield.TextInputLayout> <com.google.android.material.textfield.TextInputLayout android:id="@+id/expirationMenu" style="@style/Widget.Material3.TextInputLayout.FilledBox" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/deadline"> <com.google.android.material.textfield.TextInputEditText android:id="@+id/expirationInput" android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="date" /> </com.google.android.material.textfield.TextInputLayout> <com.google.android.material.textfield.TextInputLayout android:id="@+id/assignedToMenu" style="@style/Widget.Material3.TextInputLayout.FilledBox.ExposedDropdownMenu" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/assigned_to"> <AutoCompleteTextView android:id="@+id/assignedDropdown" android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="none" /> </com.google.android.material.textfield.TextInputLayout> <com.google.android.material.button.MaterialButton android:id="@+id/addTaskButton" style="@style/Widget.Material3.Button" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="16dp" android:text="@string/save_task" /> </LinearLayout> </androidx.core.widget.NestedScrollView> </androidx.constraintlayout.widget.ConstraintLayout>