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"
|
|
|
|
android:background="?riotx_background"
|
|
|
|
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"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:minHeight="40dp"
|
|
|
|
android:textColor="?riotx_text_primary"
|
|
|
|
android:textSize="16sp"
|
|
|
|
tools:text="Riot X" />
|
2020-01-02 17:42:42 +03:00
|
|
|
|
2020-01-23 15:57:17 +03:00
|
|
|
<!---
|
|
|
|
The following detailed informations are displayed in developper mode
|
|
|
|
-->
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDeviceDisplayNameLabel"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:text="@string/devices_details_name_title"
|
|
|
|
android:textColor="?riotx_text_secondary"
|
|
|
|
android:textSize="12sp" />
|
2020-01-02 17:05:17 +03:00
|
|
|
|
2020-01-23 15:57:17 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDeviceDisplayName"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="?riotx_text_primary"
|
|
|
|
android:textSize="16sp"
|
|
|
|
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"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:text="@string/devices_details_id_title"
|
|
|
|
android:textColor="?riotx_text_secondary"
|
|
|
|
android:textSize="12sp" />
|
2020-01-02 17:42:42 +03:00
|
|
|
|
2020-02-03 15:59:20 +03:00
|
|
|
<im.vector.riotx.core.platform.EllipsizingTextView
|
2020-01-23 15:57:17 +03:00
|
|
|
android:id="@+id/itemDeviceId"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?riotx_text_primary"
|
|
|
|
android:textSize="15sp"
|
|
|
|
tools:text="XUIDERFZAA" />
|
2020-01-02 17:42:42 +03:00
|
|
|
|
2020-01-23 15:57:17 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDeviceLastSeenLabel"
|
|
|
|
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"
|
|
|
|
android:textColor="?riotx_text_secondary"
|
|
|
|
android:textSize="12sp" />
|
2020-01-02 17:42:42 +03:00
|
|
|
|
2020-01-23 15:57:17 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDeviceLastSeen"
|
|
|
|
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:textColor="?riotx_text_primary"
|
|
|
|
android:textSize="15sp"
|
|
|
|
tools:text="x.x.x.x @ 01/01 00:00:00" />
|
2020-01-02 17:42:42 +03:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-01-23 15:57:17 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/itemDeviceTrustLevelIcon"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:padding="8dp"
|
|
|
|
tools:src="@drawable/ic_shield_trusted" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|