summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/sync_list_item.xml
diff options
context:
space:
mode:
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>