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"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingBottom="8dp">
|
|
|
|
|
2020-01-02 17:42:42 +03:00
|
|
|
<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
|
|
|
<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
|
|
|
<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-27 14:41:43 +03:00
|
|
|
<im.vector.riotx.core.platform.EllipsizingTextView
|
2020-01-02 17:05:17 +03:00
|
|
|
android:id="@+id/itemDeviceId"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2020-01-02 17:42:42 +03:00
|
|
|
android:textColor="?riotx_text_primary"
|
2020-01-02 17:05:17 +03:00
|
|
|
android:textSize="15sp"
|
|
|
|
tools:text="XUIDERFZAA" />
|
|
|
|
|
2020-01-02 17:42:42 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDeviceLastSeenLabel"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:text="@string/devices_details_last_seen_title"
|
|
|
|
android:textColor="?riotx_text_secondary"
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemDeviceLastSeen"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="?riotx_text_primary"
|
|
|
|
android:textSize="15sp"
|
|
|
|
tools:text="x.x.x.x @ 01/01 00:00:00" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/itemDeviceButtons"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/itemDeviceRename"
|
|
|
|
style="@style/VectorButtonStyleText"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/rename" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/itemDeviceDelete"
|
|
|
|
style="@style/VectorButtonStyleText"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:text="@string/delete"
|
|
|
|
android:textColor="@color/riotx_notice"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-01-02 17:05:17 +03:00
|
|
|
</LinearLayout>
|