blob: 554bd2cef7df80703dffdd558a28a78d48b6dad4 [file] [log] [blame]
Adrien Beraud5cf47732017-03-15 14:50:39 +01001<?xml version="1.0" encoding="utf-8"?><!-- Copyright (c) 2017 Savoir-faire Linux Inc.
Adrien Béraud034d7f32016-10-03 11:36:55 -04002
3Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com>
4
5This program is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 3 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
Adrien Beraud5cf47732017-03-15 14:50:39 +010016along with this program. If not, see <https://www.gnu.org/licenses/>.
Adrien Béraud034d7f32016-10-03 11:36:55 -040017-->
18<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:app="http://schemas.android.com/apk/res-auto"
Adrien Beraud5cf47732017-03-15 14:50:39 +010020 xmlns:tools="http://schemas.android.com/tools"
Adrien Béraud034d7f32016-10-03 11:36:55 -040021 android:layout_width="match_parent"
Adrien Beraud5cf47732017-03-15 14:50:39 +010022 android:layout_height="72dp"
Adrien Béraud034d7f32016-10-03 11:36:55 -040023 android:padding="16dp">
24
25 <ImageView
Adrien Béraud034d7f32016-10-03 11:36:55 -040026 android:layout_width="wrap_content"
27 android:layout_height="wrap_content"
Adrien Beraud5cf47732017-03-15 14:50:39 +010028 android:layout_alignParentLeft="true"
Adrien Béraud034d7f32016-10-03 11:36:55 -040029 android:layout_alignParentStart="true"
30 android:layout_centerVertical="true"
Aline Bonneta8011382016-11-01 12:10:16 -040031 app:srcCompat="@drawable/ic_desktop_windows_black" />
Adrien Béraud034d7f32016-10-03 11:36:55 -040032
33 <TextView
34 android:id="@+id/txt_device_label"
35 android:layout_width="wrap_content"
36 android:layout_height="wrap_content"
Adrien Beraud5cf47732017-03-15 14:50:39 +010037 android:layout_alignParentLeft="true"
Adrien Béraud034d7f32016-10-03 11:36:55 -040038 android:layout_alignParentStart="true"
Adrien Beraud5cf47732017-03-15 14:50:39 +010039 android:layout_alignParentTop="true"
Adrien Béraud034d7f32016-10-03 11:36:55 -040040 android:layout_centerVertical="true"
Adrien Beraud5cf47732017-03-15 14:50:39 +010041 android:layout_marginLeft="56dp"
Adrien Béraud034d7f32016-10-03 11:36:55 -040042 android:layout_marginStart="56dp"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010043 android:layout_toLeftOf="@+id/txt_device_thisflag"
44 android:layout_toStartOf="@+id/txt_device_thisflag"
45 android:ellipsize="end"
46 android:lines="1"
Adrien Beraud5cf47732017-03-15 14:50:39 +010047 android:textAppearance="@style/ListPrimary"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010048 tools:text="My device" />
Adrien Béraud034d7f32016-10-03 11:36:55 -040049
50 <TextView
51 android:id="@+id/txt_device_id"
52 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
Adrien Beraud5cf47732017-03-15 14:50:39 +010054 android:layout_alignLeft="@id/txt_device_label"
55 android:layout_alignStart="@+id/txt_device_label"
56 android:layout_below="@id/txt_device_label"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010057 android:layout_toLeftOf="@+id/rename_button"
58 android:layout_toStartOf="@+id/rename_button"
Adrien Béraud034d7f32016-10-03 11:36:55 -040059 android:ellipsize="middle"
60 android:maxLines="1"
Adrien Beraud5cf47732017-03-15 14:50:39 +010061 android:textAppearance="@style/TextAppearance.AppCompat.Caption"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010062 tools:text="b982672502b9f1236a68353d74734cb82f9d1fab" />
63
64 <TextView
65 android:id="@+id/txt_device_thisflag"
66 style="@style/TextAppearance.AppCompat.Small"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:layout_alignBaseline="@+id/txt_device_label"
70 android:layout_marginLeft="8dp"
71 android:layout_marginStart="8dp"
72 android:layout_toLeftOf="@+id/rename_button"
73 android:layout_toStartOf="@+id/rename_button"
74 android:text="@string/account_device_this_indicator"
75 android:textStyle="italic" />
76
77 <ImageButton
78 android:id="@+id/rename_button"
79 android:layout_width="wrap_content"
80 android:layout_height="wrap_content"
81 android:layout_alignWithParentIfMissing="true"
82 android:layout_centerVertical="true"
83 android:layout_toLeftOf="@+id/revoke_button"
84 android:layout_toStartOf="@+id/revoke_button"
85 android:background="?selectableItemBackgroundBorderless"
86 android:contentDescription="@string/account_device_revoke"
87 android:padding="8dp"
88 android:tint="@color/black"
89 app:srcCompat="@drawable/ic_action_edit" />
Adrien Beraud5cf47732017-03-15 14:50:39 +010090
91 <ImageButton
92 android:id="@+id/revoke_button"
93 android:layout_width="wrap_content"
94 android:layout_height="wrap_content"
95 android:layout_alignParentEnd="true"
96 android:layout_alignParentRight="true"
97 android:layout_centerVertical="true"
98 android:background="?selectableItemBackgroundBorderless"
99 android:contentDescription="@string/account_device_revoke"
100 android:padding="8dp"
101 app:srcCompat="@drawable/ic_cancel_black_24dp" />
Adrien Béraud034d7f32016-10-03 11:36:55 -0400102
103</RelativeLayout>