2023-04-24 15:43:42 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-04-27 08:20:56 +02:00
|
|
|
android:id="@+id/sheet"
|
2023-04-24 15:43:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"/>
|
|
|
|
|
|
2023-05-03 21:49:18 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2023-04-25 15:38:30 +02:00
|
|
|
android:layout_width="match_parent"
|
2023-04-24 15:43:42 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-05-03 21:49:18 +02:00
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:paddingHorizontal="24dp">
|
2023-04-25 15:38:30 +02:00
|
|
|
|
|
|
|
|
<TextView
|
2023-05-03 14:16:32 +02:00
|
|
|
android:id="@+id/sheet_title"
|
2023-05-03 21:49:18 +02:00
|
|
|
android:layout_width="0dp"
|
2023-04-25 15:38:30 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="22sp"
|
|
|
|
|
android:fontFamily="@font/lato_blackitalic"
|
2023-05-03 21:49:18 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_cancel"/>
|
2023-04-25 15:38:30 +02:00
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
android:id="@+id/button_cancel"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:minWidth="0dp"
|
|
|
|
|
app:icon="@drawable/cross"
|
|
|
|
|
app:iconPadding="0dp"
|
2023-05-03 21:49:18 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2023-05-01 22:19:44 +02:00
|
|
|
app:iconTint="?attr/colorOnSurfaceVariant"
|
2023-05-03 21:49:18 +02:00
|
|
|
android:layout_marginStart="16dp"/>
|
2023-04-25 15:38:30 +02:00
|
|
|
|
2023-05-03 21:49:18 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2023-04-24 15:43:42 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2023-04-24 15:43:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:scrollbars="vertical">
|
2023-04-24 15:43:42 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
2023-04-24 15:43:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="16dp"
|
|
|
|
|
android:paddingHorizontal="24dp">
|
2023-04-24 15:43:42 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
2023-05-03 21:49:18 +02:00
|
|
|
android:id="@+id/text_layout_title"
|
2023-04-24 15:43:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-05-05 13:09:27 +02:00
|
|
|
android:layout_marginBottom="4dp"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:hint="@string/sheet_schedule_update_title_hint"
|
|
|
|
|
app:boxStrokeColor="@color/selector_text_input"
|
|
|
|
|
app:hintTextColor="@color/selector_text_input">
|
2023-04-24 15:43:42 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
style="@style/ThemeOverlay.Material3.TextInputEditText.OutlinedBox"
|
|
|
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
|
|
|
android:id="@+id/edit_text_title"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"/>
|
2023-04-24 15:43:42 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2023-04-24 15:43:42 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
2023-04-24 15:43:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:layout_marginBottom="8dp">
|
2023-04-24 15:43:42 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<!-- lecturers -->
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
2023-05-03 21:49:18 +02:00
|
|
|
android:id="@+id/text_layout_lecturers"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
2023-05-05 13:09:27 +02:00
|
|
|
android:layout_marginEnd="8dp"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:maxLines="1"
|
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
|
android:hint="@string/sheet_schedule_update_lecturers_hint"
|
|
|
|
|
app:boxStrokeColor="@color/selector_text_input"
|
|
|
|
|
app:hintTextColor="@color/selector_text_input">
|
2023-04-24 15:43:42 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
style="@style/ThemeOverlay.Material3.TextInputEditText.OutlinedBox"
|
|
|
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
|
|
|
android:id="@+id/edit_text_lecturers"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:inputType="text"/>
|
2023-04-24 15:43:42 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2023-04-27 08:20:56 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<!-- room -->
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
2023-05-03 21:49:18 +02:00
|
|
|
android:id="@+id/text_layout_room"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:maxLines="1"
|
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
|
android:hint="@string/sheet_schedule_update_room_hint"
|
|
|
|
|
app:boxStrokeColor="@color/selector_text_input"
|
|
|
|
|
app:hintTextColor="@color/selector_text_input">
|
2023-04-25 10:24:15 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
style="@style/ThemeOverlay.Material3.TextInputEditText.OutlinedBox"
|
|
|
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
|
|
|
android:id="@+id/edit_text_room"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:inputType="text"/>
|
2023-04-25 10:24:15 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2023-04-25 10:24:15 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
2023-04-25 10:24:15 +02:00
|
|
|
|
2023-05-03 14:16:32 +02:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2023-05-03 21:49:18 +02:00
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
2023-05-03 14:16:32 +02:00
|
|
|
android:id="@+id/button_day"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
app:icon="@drawable/edit_calendar"
|
2023-05-03 21:49:18 +02:00
|
|
|
android:layout_gravity="end"
|
|
|
|
|
app:strokeColor="?attr/colorOutlineVariant"/>
|
2023-05-03 14:16:32 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/button_academic_quarter"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
app:icon="@drawable/lightbulb"
|
|
|
|
|
android:text="@string/sheet_schedule_update_hint_quarter"
|
|
|
|
|
android:layout_gravity="end"/>
|
2023-04-25 10:24:15 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:layout_marginBottom="8dp">
|
2023-04-24 15:43:42 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
|
|
|
android:id="@+id/button_time_start"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
app:strokeColor="?attr/colorOutlineVariant"/>
|
2023-04-24 15:43:42 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/sheet_schedule_update_timeslot_middle"
|
|
|
|
|
android:layout_marginHorizontal="8dp"/>
|
2023-04-24 15:43:42 +02:00
|
|
|
|
2023-05-01 22:19:44 +02:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
|
|
|
android:id="@+id/button_time_end"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
app:strokeColor="?attr/colorOutlineVariant"/>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
2023-05-02 22:35:19 +02:00
|
|
|
android:id="@+id/button_container"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:gravity="end"
|
2023-05-02 22:35:19 +02:00
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:animateLayoutChanges="true">
|
2023-05-01 22:19:44 +02:00
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/button_delete"
|
|
|
|
|
style="@style/Widget.Material3.Button.TonalButton"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/delete"
|
|
|
|
|
app:icon="@drawable/delete"
|
|
|
|
|
android:layout_marginEnd="8dp"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/button_save"
|
|
|
|
|
style="@style/Widget.Material3.Button.TonalButton"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/save"
|
|
|
|
|
app:icon="@drawable/save"/>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
2023-04-24 15:43:42 +02:00
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|