Added ability to toggle from pass view to map view #68

This commit is contained in:
Arty Bishop committed 2021-10-27 21:47:02 +01:00
1 parent 96ae6338a7
commit 8ef0d103e4
5 files changed
+45 -14

No files matched your search

+16 -2
View File
@@ -77,7 +77,7 @@
app:layout_constraintEnd_toEndOf="@+id/radar_frame" />
<ImageButton
android:id="@+id/add_notification_button"
android:id="@+id/radar_notify_button"
android:layout_width="64dp"
android:layout_height="48dp"
android:layout_marginStart="4dp"
@@ -86,10 +86,24 @@
android:contentDescription="@string/placeholder"
android:elevation="4dp"
android:src="@drawable/ic_notification"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="@+id/radar_bar"
app:layout_constraintStart_toStartOf="@+id/radar_bar"
app:layout_constraintTop_toTopOf="@+id/radar_bar"
app:tint="@color/greyLight"
tools:ignore="DuplicateSpeakableTextCheck" />
<ImageButton
android:id="@+id/radar_to_map_button"
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_nav_map"
app:layout_constraintBottom_toBottomOf="@+id/radar_bar"
app:layout_constraintEnd_toEndOf="@+id/radar_bar"
app:layout_constraintTop_toTopOf="@+id/radar_bar"
tools:ignore="DuplicateSpeakableTextCheck" />
<androidx.recyclerview.widget.RecyclerView
@@ -48,6 +48,13 @@
app:popExitAnim="@anim/nav_default_pop_exit_anim"
app:popUpTo="@id/nav_passes"
app:popUpToInclusive="true" />
<action
android:id="@+id/action_radar_to_map"
app:destination="@id/nav_map"
app:enterAnim="@anim/nav_default_enter_anim"
app:exitAnim="@anim/nav_default_exit_anim"
app:popEnterAnim="@anim/nav_default_pop_enter_anim"
app:popExitAnim="@anim/nav_default_pop_exit_anim" />
</fragment>
<fragment
android:id="@+id/nav_map"