Add notification button and dialog on Radar Fragment

This commit is contained in:
Kamil Wargula authored and Arty Bishop committed 2021-10-27 21:47:02 +01:00
1 parent 5f4c63ee49
commit 5c5f08afc0
4 files changed
+53

No files matched your search

@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@color/themeLight"
android:pathData="M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21" />
</vector>
@@ -75,6 +75,18 @@
app:layout_constraintBottom_toBottomOf="@+id/radar_frame"
app:layout_constraintEnd_toEndOf="@+id/radar_frame" />
<ImageButton
android:id="@+id/add_notification_buttton"
android:layout_width="64dp"
android:layout_height="48dp"
android:layout_marginEnd="4dp"
android:backgroundTint="@color/greyDark"
android:contentDescription="@string/placeholder"
android:elevation="4dp"
android:src="@drawable/ic_notification"
app:layout_constraintEnd_toEndOf="@+id/radar_bar"
app:layout_constraintLeft_toLeftOf="parent" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/radar_recycler"
android:layout_width="0dp"
+6
View File
@@ -14,6 +14,12 @@
<string name="menu_prefs">Settings</string>
<string name="menu_about">Info</string>
<string name="notification_title">Set notification to incoming pass</string>
<string name="notification_on_start_pass">on start pass</string>
<string name="notification_5_min_before">5 minutes before pass</string>
<string name="notification_10_min_before">10 minutes before pass</string>
<string name="notification_15_min_before">15 minutes before pass</string>
<string name="sources_title">Manage TLE sources</string>
<string name="sources_hint">Source URL</string>
<string name="sources_https">Protocol HTTPS only</string>