Add reminders

This commit is contained in:
2019-09-20 20:03:29 +02:00
committed by Matte23
parent 4a9533a756
commit 9c41010ed5
13 changed files with 377 additions and 16 deletions

View File

@@ -0,0 +1,52 @@
<?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"
android:id="@+id/dialog_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:animateLayoutChanges="true">
<DatePicker
android:id="@+id/dialog_date_picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:datePickerMode="calendar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TimePicker
android:id="@+id/dialog_time_picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/dialog_date_picker" />
<Button
android:id="@+id/dialog_cancel_button"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:text="@string/dialog_cancel"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/dialog_time_picker" />
<Button
android:id="@+id/dialog_ok_button"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="4dp"
android:text="@string/dialog_next"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/dialog_time_picker" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -9,8 +9,16 @@
<string name="notification_summary">New circulars</string>
<string name="notification_summary_text">%1$d new circulars</string>
<string name="channel_name">Circular letters</string>
<string name="channel_description">Notify when your school issue a new circular letter</string>
<string name="notification_title_reminder">Reminder</string>
<string name="channel_name_new">Circular letters</string>
<string name="channel_description_new">Notify when your school issue a new circular letter</string>
<string name="channel_name_reminder">Reminders</string>
<string name="channel_description_reminder">Reminder linked with circular letter</string>
<string name="dialog_ok">OK</string>
<string name="dialog_next">Next</string>
<string name="dialog_cancel">Cancel</string>
<string name="snackbar_connection_not_available">Network not available. Results may be outdated</string>
</resources>