summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-02-20 22:59:50 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-02-20 22:59:50 +0100
commitab3d085e9e883b0a146e55aa9f80aaf0b326c4aa (patch)
tree6cca0cba1ed7b5138b8f519656e73deb9442f963 /app/src/main/res/layout
parentd18325aa04d0c1053aae3aec47c5dca495d65e78 (diff)
WIPWIP
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_main.xml5
-rw-r--r--app/src/main/res/layout/content_main.xml2
-rw-r--r--app/src/main/res/layout/fragment_add_sync.xml13
-rw-r--r--app/src/main/res/layout/fragment_edit_sync.xml13
-rw-r--r--app/src/main/res/layout/fragment_sync_list.xml20
-rw-r--r--app/src/main/res/layout/fragment_sync_list_empty.xml32
-rw-r--r--app/src/main/res/layout/fragment_sync_list_list.xml8
-rw-r--r--app/src/main/res/layout/sync_list_item.xml64
8 files changed, 154 insertions, 3 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index b214f0f..48aea59 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -20,13 +20,14 @@
</com.google.android.material.appbar.AppBarLayout>
<com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/fab"
+ android:id="@+id/add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_marginBottom="16dp"
android:layout_marginEnd="@dimen/fab_margin"
- app:srcCompat="@android:drawable/ic_dialog_email" />
+ android:contentDescription="@string/add_fab_label"
+ app:srcCompat="@android:drawable/ic_menu_add" />
<include layout="@layout/content_main" />
diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml
index 041049e..f377027 100644
--- a/app/src/main/res/layout/content_main.xml
+++ b/app/src/main/res/layout/content_main.xml
@@ -5,7 +5,7 @@
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
- <fragment
+ <androidx.fragment.app.FragmentContainerView
android:id="@+id/nav_host_fragment_content_main"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="0dp"
diff --git a/app/src/main/res/layout/fragment_add_sync.xml b/app/src/main/res/layout/fragment_add_sync.xml
new file mode 100644
index 0000000..ef85b76
--- /dev/null
+++ b/app/src/main/res/layout/fragment_add_sync.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".AddSyncFragment">
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:padding="16dp">
+
+</androidx.constraintlayout.widget.ConstraintLayout>
+</androidx.core.widget.NestedScrollView>
diff --git a/app/src/main/res/layout/fragment_edit_sync.xml b/app/src/main/res/layout/fragment_edit_sync.xml
new file mode 100644
index 0000000..1f399a9
--- /dev/null
+++ b/app/src/main/res/layout/fragment_edit_sync.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".EditSyncFragment">
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:padding="16dp">
+
+ </androidx.constraintlayout.widget.ConstraintLayout>
+</androidx.core.widget.NestedScrollView>
diff --git a/app/src/main/res/layout/fragment_sync_list.xml b/app/src/main/res/layout/fragment_sync_list.xml
new file mode 100644
index 0000000..c14b302
--- /dev/null
+++ b/app/src/main/res/layout/fragment_sync_list.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ViewSwitcher xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".SyncListFragment">
+
+ <include
+ android:id="@+id/list"
+ layout="@layout/fragment_sync_list_list"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ <include
+ android:id="@+id/empty_view"
+ layout="@layout/fragment_sync_list_empty"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"/>
+
+</ViewSwitcher>
diff --git a/app/src/main/res/layout/fragment_sync_list_empty.xml b/app/src/main/res/layout/fragment_sync_list_empty.xml
new file mode 100644
index 0000000..3272e6b
--- /dev/null
+++ b/app/src/main/res/layout/fragment_sync_list_empty.xml
@@ -0,0 +1,32 @@
+<?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:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TextView
+ android:id="@+id/title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_margin="16dp"
+ android:text="@string/sync_list_title"
+ android:textAlignment="center"
+ android:textAppearance="@style/TextAppearance.AppCompat.Display1"
+ app:layout_constraintBottom_toTopOf="@+id/text"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <TextView
+ android:id="@+id/text"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:layout_margin="16dp"
+ android:text="@string/sync_list_text"
+ android:textAppearance="@style/TextAppearance.AppCompat.Body1"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/title" />
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/app/src/main/res/layout/fragment_sync_list_list.xml b/app/src/main/res/layout/fragment_sync_list_list.xml
new file mode 100644
index 0000000..6b095a7
--- /dev/null
+++ b/app/src/main/res/layout/fragment_sync_list_list.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:context=".SyncListFragment"
+ tools:itemCount="3"
+ tools:listitem="@layout/sync_list_item" />
diff --git a/app/src/main/res/layout/sync_list_item.xml b/app/src/main/res/layout/sync_list_item.xml
new file mode 100644
index 0000000..68d1783
--- /dev/null
+++ b/app/src/main/res/layout/sync_list_item.xml
@@ -0,0 +1,64 @@
+<?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"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <ImageView
+ android:id="@+id/icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="16dp"
+ app:layout_constraintEnd_toStartOf="@id/right_title"
+ app:layout_constraintStart_toEndOf="@id/left_title"
+ app:layout_constraintTop_toTopOf="parent"
+ tools:contentDescription="Syncing left to right, status good"
+ tools:src="@drawable/baseline_arrow_forward_48"
+ tools:ignore="ContentDescription" />
+
+ <TextView
+ android:id="@+id/left_title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="16dp"
+ android:textAppearance="@style/TextAppearance.AppCompat.Medium"
+ app:layout_constraintBottom_toBottomOf="@id/icon"
+ app:layout_constraintEnd_toStartOf="@+id/icon"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="@id/icon"
+ tools:text="Source Title" />
+
+ <TextView
+ android:id="@+id/right_title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="16dp"
+ android:textAlignment="viewEnd"
+ android:textAppearance="@style/TextAppearance.AppCompat.Medium"
+ app:layout_constraintBottom_toBottomOf="@id/left_title"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toEndOf="@+id/icon"
+ app:layout_constraintTop_toTopOf="@id/left_title"
+ tools:text="Target Title" />
+
+ <TextView
+ android:id="@+id/status"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_margin="16dp"
+ android:textAppearance="@style/TextAppearance.AppCompat.Small"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/title_barrier"
+ tools:text="Doing nothing" />
+
+ <androidx.constraintlayout.widget.Barrier
+ android:id="@+id/title_barrier"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:barrierDirection="bottom"
+ app:constraint_referenced_ids="left_title, right_title, icon" />
+
+</androidx.constraintlayout.widget.ConstraintLayout>