2020-01-02 17:05:17 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/itemDeviceRoot"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:background="?android:colorBackground"
|
2020-01-02 17:05:17 +03:00
|
|
|
android:foreground="?attr/selectableItemBackground"
|
2020-01-23 15:57:17 +03:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="8dp">
|
2020-01-02 17:05:17 +03:00
|
|
|
|
2020-01-23 15:57:17 +03:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
2020-01-02 17:05:17 +03:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-23 15:57:17 +03:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
2020-01-02 17:05:17 +03:00
|
|
|
|
2020-01-23 15:57:17 +03:00
|
|
|
<!-- In compact mode only this is shown-->
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDeviceSimpleSummary"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Subtitle"
|
2020-01-23 15:57:17 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:minHeight="40dp"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:textColor="?vctr_content_primary"
|
2020-01-23 15:57:17 +03:00
|
|
|
tools:text="Riot X" />
|
2020-01-02 17:42:42 +03:00
|
|
|
|
2020-01-23 15:57:17 +03:00
|
|
|
<!---
|
2020-08-27 23:44:55 +03:00
|
|
|
The following detailed data are displayed in developer mode
|
2020-01-23 15:57:17 +03:00
|
|
|
-->
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDeviceDisplayNameLabel"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Caption"
|
2020-01-23 15:57:17 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:text="@string/devices_details_name_title"
|
2021-06-14 22:22:56 +03:00
|
|
|
android:textColor="?vctr_content_secondary" />
|
2020-01-02 17:05:17 +03:00
|
|
|
|
2020-01-23 15:57:17 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDeviceDisplayName"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Body"
|
2020-01-23 15:57:17 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:textColor="?vctr_content_primary"
|
2020-01-23 15:57:17 +03:00
|
|
|
tools:text="Android phone" />
|
2020-01-02 17:42:42 +03:00
|
|
|
|
2020-01-23 15:57:17 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDeviceIdLabel"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Caption"
|
2020-01-23 15:57:17 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:text="@string/devices_details_id_title"
|
2021-06-14 22:22:56 +03:00
|
|
|
android:textColor="?vctr_content_secondary" />
|
2020-01-02 17:42:42 +03:00
|
|
|
|
2020-07-10 23:35:51 +03:00
|
|
|
<TextView
|
2020-01-23 15:57:17 +03:00
|
|
|
android:id="@+id/itemDeviceId"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Body"
|
2020-01-23 15:57:17 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:textColor="?vctr_content_primary"
|
2020-01-23 15:57:17 +03:00
|
|
|
tools:text="XUIDERFZAA" />
|
2020-01-02 17:42:42 +03:00
|
|
|
|
2020-01-23 15:57:17 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDeviceLastSeenLabel"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Caption"
|
2020-01-23 15:57:17 +03:00
|
|
|
android:layout_width="match_parent"
|
2020-01-02 17:42:42 +03:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-23 15:57:17 +03:00
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:text="@string/devices_details_last_seen_title"
|
2021-06-14 22:22:56 +03:00
|
|
|
android:textColor="?vctr_content_secondary" />
|
2020-01-02 17:42:42 +03:00
|
|
|
|
2020-01-23 15:57:17 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDeviceLastSeen"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Body"
|
2020-01-23 15:57:17 +03:00
|
|
|
android:layout_width="match_parent"
|
2020-01-02 17:42:42 +03:00
|
|
|
android:layout_height="wrap_content"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:textColor="?vctr_content_primary"
|
2020-01-23 15:57:17 +03:00
|
|
|
tools:text="x.x.x.x @ 01/01 00:00:00" />
|
2020-01-02 17:42:42 +03:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2021-02-12 22:04:00 +03:00
|
|
|
<im.vector.app.core.ui.views.ShieldImageView
|
2020-01-23 15:57:17 +03:00
|
|
|
android:id="@+id/itemDeviceTrustLevelIcon"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="match_parent"
|
2021-02-12 22:43:58 +03:00
|
|
|
android:padding="8dp" />
|
2020-01-23 15:57:17 +03:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|