mirror of
https://github.com/rt-bishop/Look4Sat.git
synced 2026-10-04 03:47:24 +00:00
Added entries recycler item divider, further fixes to the UI
This commit is contained in:
1 parent
704dac6a75
commit
3935765491
16 files changed
+61
-123
No files matched your search
@@ -20,10 +20,11 @@
|
||||
android:id="@+id/nav_bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:background="@color/themeDark"
|
||||
app:itemIconSize="24dp"
|
||||
app:itemIconTint="@color/nav_item_selector"
|
||||
app:itemTextColor="@color/nav_item_selector"
|
||||
app:labelVisibilityMode="selected"
|
||||
app:labelVisibilityMode="labeled"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -1,88 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
|
||||
~ Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
|
||||
~
|
||||
~ This program is free software; you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation; either version 2 of the License, or
|
||||
~ (at your option) any later version.
|
||||
~
|
||||
~ This program is distributed in the hope that it will be useful,
|
||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
~ GNU General Public License for more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License along
|
||||
~ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
-->
|
||||
|
||||
<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_sat_entry_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="4dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog_title"
|
||||
style="@style/DialogText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="@string/dialog_select_sat"
|
||||
app:layout_constraintEnd_toEndOf="@+id/dialog_btn_positive"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="@+id/dialog_btn_neutral"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<SearchView
|
||||
android:id="@+id/dialog_search"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:queryHint="@string/dialog_entries_hint"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/dialog_title" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/dialog_recycler"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/dialog_btn_negative"
|
||||
app:layout_constraintEnd_toEndOf="@+id/dialog_search"
|
||||
app:layout_constraintStart_toStartOf="@+id/dialog_search"
|
||||
app:layout_constraintTop_toBottomOf="@+id/dialog_search" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog_btn_neutral"
|
||||
style="@style/DialogText"
|
||||
android:layout_marginStart="8dp"
|
||||
android:text="@string/btn_all_none"
|
||||
app:layout_constraintBaseline_toBaselineOf="@+id/dialog_btn_negative"
|
||||
app:layout_constraintStart_toStartOf="@+id/dialog_recycler" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog_btn_negative"
|
||||
style="@style/DialogText"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:text="@string/btn_cancel"
|
||||
app:layout_constraintBaseline_toBaselineOf="@+id/dialog_btn_positive"
|
||||
app:layout_constraintEnd_toStartOf="@+id/dialog_btn_positive" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog_btn_positive"
|
||||
style="@style/DialogText"
|
||||
android:layout_width="36dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:gravity="end"
|
||||
android:text="@string/btn_ok"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="@+id/dialog_recycler" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -29,7 +29,7 @@
|
||||
<View
|
||||
android:id="@+id/entries_bar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="96dp"
|
||||
android:layout_height="48dp"
|
||||
android:background="@color/themeDark"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -39,7 +39,7 @@
|
||||
android:id="@+id/import_msg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginStart="24dp"
|
||||
android:text="@string/sat_import"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/import_web"
|
||||
@@ -48,9 +48,8 @@
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/import_web"
|
||||
android:layout_width="48dp"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:backgroundTint="@color/backgroundDark"
|
||||
android:contentDescription="@string/placeholder"
|
||||
android:src="@drawable/ic_update_web"
|
||||
@@ -60,9 +59,9 @@
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/import_file"
|
||||
android:layout_width="48dp"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:backgroundTint="@color/backgroundDark"
|
||||
android:contentDescription="@string/placeholder"
|
||||
android:src="@drawable/ic_update_file"
|
||||
@@ -73,17 +72,18 @@
|
||||
android:id="@+id/search_bar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:iconifiedByDefault="false"
|
||||
android:queryHint="@string/dialog_entries_hint"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/entries_bar"
|
||||
app:layout_constraintEnd_toStartOf="@+id/select_all"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/entries_bar" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/select_all"
|
||||
android:layout_width="48dp"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="48dp"
|
||||
android:backgroundTint="@color/backgroundDark"
|
||||
android:backgroundTint="@color/themeDark"
|
||||
android:contentDescription="@string/placeholder"
|
||||
android:src="@drawable/ic_select_all"
|
||||
app:layout_constraintEnd_toEndOf="@+id/import_file"
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.fragments.AboutFragment">
|
||||
tools:context=".ui.fragments.InfoFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -64,8 +64,6 @@
|
||||
android:id="@+id/passes_recycler"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -20,7 +20,12 @@
|
||||
<CheckBox xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/sat_entry_checkbox"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="36dp"
|
||||
android:layout_height="34dp"
|
||||
android:background="@null"
|
||||
android:button="@null"
|
||||
android:drawableEnd="?android:attr/listChoiceIndicatorMultiple"
|
||||
android:paddingStart="24dp"
|
||||
android:paddingEnd="20dp"
|
||||
android:text="@string/placeholder"
|
||||
android:textColor="@color/themeLight"
|
||||
android:textSize="17sp" />
|
||||
Reference in new issue
Block a user