diff --git a/android/app/src/main/java/com/js8call/example/ui/DecodeFragment.kt b/android/app/src/main/java/com/js8call/example/ui/DecodeFragment.kt index e4630370..ba96bc41 100644 --- a/android/app/src/main/java/com/js8call/example/ui/DecodeFragment.kt +++ b/android/app/src/main/java/com/js8call/example/ui/DecodeFragment.kt @@ -13,7 +13,6 @@ import androidx.lifecycle.ViewModelProvider import androidx.navigation.fragment.findNavController import androidx.recyclerview.widget.RecyclerView import com.google.android.material.dialog.MaterialAlertDialogBuilder -import com.google.android.material.floatingactionbutton.FloatingActionButton import com.google.android.material.navigation.NavigationBarView import com.google.android.material.snackbar.Snackbar import com.js8call.example.R @@ -29,7 +28,7 @@ class DecodeFragment : Fragment() { private lateinit var recyclerView: RecyclerView private lateinit var emptyText: TextView - private lateinit var clearFab: FloatingActionButton + private lateinit var clearButton: View private var myGroups: Set = emptySet() @@ -66,7 +65,7 @@ class DecodeFragment : Fragment() { // Find views recyclerView = view.findViewById(R.id.decodes_recycler_view) emptyText = view.findViewById(R.id.empty_text) - clearFab = view.findViewById(R.id.clear_fab) + clearButton = view.findViewById(R.id.clear_button) // Set up RecyclerView adapter = DecodeListAdapter().apply { @@ -80,8 +79,8 @@ class DecodeFragment : Fragment() { } recyclerView.adapter = adapter - // Set up FAB - clearFab.setOnClickListener { + // Set up clear button + clearButton.setOnClickListener { confirmClearDecodes() } diff --git a/android/app/src/main/res/drawable/ic_delete.xml b/android/app/src/main/res/drawable/ic_delete.xml new file mode 100644 index 00000000..1a9f6dd1 --- /dev/null +++ b/android/app/src/main/res/drawable/ic_delete.xml @@ -0,0 +1,10 @@ + + + + diff --git a/android/app/src/main/res/drawable/ic_notes.xml b/android/app/src/main/res/drawable/ic_notes.xml deleted file mode 100644 index eb0f830c..00000000 --- a/android/app/src/main/res/drawable/ic_notes.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - diff --git a/android/app/src/main/res/layout-land/fragment_monitor.xml b/android/app/src/main/res/layout-land/fragment_monitor.xml new file mode 100644 index 00000000..bc35e0df --- /dev/null +++ b/android/app/src/main/res/layout-land/fragment_monitor.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/res/layout-sw600dp-land/fragment_monitor.xml b/android/app/src/main/res/layout-sw600dp-land/fragment_monitor.xml new file mode 100644 index 00000000..ebdfc41e --- /dev/null +++ b/android/app/src/main/res/layout-sw600dp-land/fragment_monitor.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + diff --git a/android/app/src/main/res/layout/fragment_decodes.xml b/android/app/src/main/res/layout/fragment_decodes.xml index f947eb3c..dbac8c5d 100644 --- a/android/app/src/main/res/layout/fragment_decodes.xml +++ b/android/app/src/main/res/layout/fragment_decodes.xml @@ -1,59 +1,70 @@ - - - - - - - - - - - - - - - + android:layout_height="match_parent" + app:cardElevation="2dp"> + + + + + + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/res/layout/fragment_monitor.xml b/android/app/src/main/res/layout/fragment_monitor.xml index 8027683c..ebdfc41e 100644 --- a/android/app/src/main/res/layout/fragment_monitor.xml +++ b/android/app/src/main/res/layout/fragment_monitor.xml @@ -9,7 +9,7 @@ android:id="@+id/waterfall_view" android:layout_width="match_parent" android:layout_height="0dp" - android:layout_weight="1" + android:layout_weight="@dimen/monitor_waterfall_weight" android:background="@color/waterfall_background" /> @@ -18,4 +18,14 @@ android:layout_width="match_parent" android:layout_height="wrap_content" /> + + + diff --git a/android/app/src/main/res/menu/bottom_nav_menu.xml b/android/app/src/main/res/menu/bottom_nav_menu.xml index 7e839152..426600c9 100644 --- a/android/app/src/main/res/menu/bottom_nav_menu.xml +++ b/android/app/src/main/res/menu/bottom_nav_menu.xml @@ -5,11 +5,6 @@ android:icon="@drawable/ic_graphic_eq" android:title="@string/nav_monitor" /> - - - - + + 1 + 1.3 + diff --git a/android/app/src/main/res/values/dimens.xml b/android/app/src/main/res/values/dimens.xml new file mode 100644 index 00000000..1e529002 --- /dev/null +++ b/android/app/src/main/res/values/dimens.xml @@ -0,0 +1,6 @@ + + + + 1.1 + 1 + diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml index 259044c5..c3f684f7 100644 --- a/android/app/src/main/res/values/strings.xml +++ b/android/app/src/main/res/values/strings.xml @@ -4,7 +4,6 @@ Monitor - Decodes Messages Transmit Settings