blob: 631db2728bc0e00827ed327d4f5c493c0dbefa57 [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 Béraud034d7f32016-10-03 11:36:55 -040028 android:layout_alignParentStart="true"
29 android:layout_centerVertical="true"
Aline Bonneta8011382016-11-01 12:10:16 -040030 app:srcCompat="@drawable/ic_desktop_windows_black" />
Adrien Béraud034d7f32016-10-03 11:36:55 -040031
32 <TextView
33 android:id="@+id/txt_device_label"
34 android:layout_width="wrap_content"
35 android:layout_height="wrap_content"
Adrien Béraud034d7f32016-10-03 11:36:55 -040036 android:layout_alignParentStart="true"
Adrien Beraud5cf47732017-03-15 14:50:39 +010037 android:layout_alignParentTop="true"
Adrien Béraud034d7f32016-10-03 11:36:55 -040038 android:layout_centerVertical="true"
Adrien Béraud034d7f32016-10-03 11:36:55 -040039 android:layout_marginStart="56dp"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010040 android:layout_toStartOf="@+id/txt_device_thisflag"
41 android:ellipsize="end"
42 android:lines="1"
Adrien Beraud5cf47732017-03-15 14:50:39 +010043 android:textAppearance="@style/ListPrimary"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010044 tools:text="My device" />
Adrien Béraud034d7f32016-10-03 11:36:55 -040045
46 <TextView
47 android:id="@+id/txt_device_id"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
Adrien Beraud5cf47732017-03-15 14:50:39 +010050 android:layout_alignStart="@+id/txt_device_label"
51 android:layout_below="@id/txt_device_label"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010052 android:layout_toStartOf="@+id/rename_button"
Adrien Béraud034d7f32016-10-03 11:36:55 -040053 android:ellipsize="middle"
Pierre Duchemina5529292017-12-18 17:25:54 -050054 android:singleLine="true"
Adrien Beraud5cf47732017-03-15 14:50:39 +010055 android:textAppearance="@style/TextAppearance.AppCompat.Caption"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010056 tools:text="b982672502b9f1236a68353d74734cb82f9d1fab" />
57
58 <TextView
59 android:id="@+id/txt_device_thisflag"
60 style="@style/TextAppearance.AppCompat.Small"
61 android:layout_width="wrap_content"
62 android:layout_height="wrap_content"
63 android:layout_alignBaseline="@+id/txt_device_label"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010064 android:layout_marginStart="8dp"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010065 android:layout_toStartOf="@+id/rename_button"
66 android:text="@string/account_device_this_indicator"
67 android:textStyle="italic" />
68
69 <ImageButton
70 android:id="@+id/rename_button"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
73 android:layout_alignWithParentIfMissing="true"
74 android:layout_centerVertical="true"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010075 android:layout_toStartOf="@+id/revoke_button"
76 android:background="?selectableItemBackgroundBorderless"
77 android:contentDescription="@string/account_device_revoke"
78 android:padding="8dp"
79 android:tint="@color/black"
80 app:srcCompat="@drawable/ic_action_edit" />
Adrien Beraud5cf47732017-03-15 14:50:39 +010081
82 <ImageButton
83 android:id="@+id/revoke_button"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
86 android:layout_alignParentEnd="true"
Adrien Beraud5cf47732017-03-15 14:50:39 +010087 android:layout_centerVertical="true"
88 android:background="?selectableItemBackgroundBorderless"
89 android:contentDescription="@string/account_device_revoke"
90 android:padding="8dp"
91 app:srcCompat="@drawable/ic_cancel_black_24dp" />
Adrien Béraud034d7f32016-10-03 11:36:55 -040092
93</RelativeLayout>