summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/sync_list_item.xml
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/sync_list_item.xml
parentd18325aa04d0c1053aae3aec47c5dca495d65e78 (diff)
WIPWIP
Diffstat (limited to 'app/src/main/res/layout/sync_list_item.xml')
-rw-r--r--app/src/main/res/layout/sync_list_item.xml64
1 files changed, 64 insertions, 0 deletions
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>