2018-08-02 13:33:06 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-12-06 12:43:00 +00:00
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-08-02 13:33:06 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:layout_width="match_parent"
|
2018-08-14 20:12:25 +00:00
|
|
|
android:layout_height="wrap_content">
|
2018-08-02 13:33:06 +00:00
|
|
|
|
2018-12-06 12:43:00 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/clItem"
|
2018-09-12 16:54:48 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-12-06 12:43:00 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-03-08 10:13:15 +00:00
|
|
|
android:background="?attr/activatableItemBackground"
|
2019-03-07 20:33:29 +00:00
|
|
|
android:foreground="?attr/selectableItemBackground">
|
2018-09-12 16:54:48 +00:00
|
|
|
|
2018-12-06 12:43:00 +00:00
|
|
|
<View
|
|
|
|
android:id="@+id/vwColor"
|
|
|
|
android:layout_width="6dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="@color/colorAccent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-01-17 21:24:42 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2018-12-06 12:43:00 +00:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2018-08-02 13:33:06 +00:00
|
|
|
|
2018-12-06 12:43:00 +00:00
|
|
|
<View
|
|
|
|
android:id="@+id/marginTop"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="3dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2018-08-02 13:33:06 +00:00
|
|
|
|
2019-03-19 10:55:16 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/ivState"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:src="@drawable/baseline_cloud_off_24"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/tvName"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/vwColor"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/tvName" />
|
|
|
|
|
2018-12-06 12:43:00 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/ivPrimary"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:src="@drawable/baseline_star_24"
|
2019-03-19 10:55:16 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/tvName"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/ivState"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/tvName" />
|
2018-08-02 13:33:06 +00:00
|
|
|
|
2019-03-19 17:55:54 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/ivNotify"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:src="@drawable/baseline_notifications_24"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/tvName"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/ivPrimary"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/tvName" />
|
|
|
|
|
2018-12-06 12:43:00 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvName"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
2019-03-19 10:55:16 +00:00
|
|
|
android:ellipsize="middle"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:minHeight="24dp"
|
|
|
|
android:singleLine="true"
|
2018-12-06 12:43:00 +00:00
|
|
|
android:text="Name"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/ivSync"
|
2019-03-19 17:55:54 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@id/ivNotify"
|
2019-03-19 10:55:16 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/marginTop" />
|
2018-08-15 10:32:51 +00:00
|
|
|
|
2018-12-06 12:43:00 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/ivSync"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:src="@drawable/baseline_sync_24"
|
2019-03-19 10:55:16 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/tvName"
|
2018-12-06 12:43:00 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-03-19 10:55:16 +00:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/tvName" />
|
2018-08-13 14:44:47 +00:00
|
|
|
|
2018-12-06 12:43:00 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvUser"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
2019-03-19 10:55:16 +00:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2018-12-06 12:43:00 +00:00
|
|
|
android:text="user"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/ivSync"
|
2019-03-19 10:55:16 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/ivState"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvName" />
|
2018-11-28 16:43:46 +00:00
|
|
|
|
2018-12-06 12:43:00 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvHost"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:text="host"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-03-19 10:55:16 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/ivState"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvUser" />
|
2018-08-11 08:28:54 +00:00
|
|
|
|
2018-12-06 12:43:00 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvLast"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
2019-02-17 12:39:59 +00:00
|
|
|
android:ellipsize="start"
|
|
|
|
android:singleLine="true"
|
2018-12-06 12:43:00 +00:00
|
|
|
android:text="Last connected time"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-03-19 10:55:16 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/ivState"
|
2018-12-06 12:43:00 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvHost" />
|
2018-09-12 16:54:48 +00:00
|
|
|
|
2019-03-27 08:19:11 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvWarning"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:text="warning"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
android:textColor="?attr/colorWarning"
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/vwColor"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvLast" />
|
|
|
|
|
2018-12-06 12:43:00 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvError"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:text="error"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
android:textColor="?attr/colorWarning"
|
2018-12-08 18:09:35 +00:00
|
|
|
android:textIsSelectable="true"
|
2018-12-06 12:43:00 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/vwColor"
|
2019-03-27 08:19:11 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvWarning" />
|
2018-12-06 12:43:00 +00:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/marginBottom"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="3dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvError" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/vSeparator"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?attr/colorSeparator"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/marginBottom" />
|
2019-03-19 10:55:16 +00:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
|
|
android:id="@+id/grpSettings"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
app:constraint_referenced_ids="ivSync,tvHost" />
|
2018-12-06 12:43:00 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</FrameLayout>
|