blob: 00275167d643a6cce4aaa048ce8732abd015f15a [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
26 android:id="@+id/icon_device"
27 android:layout_width="wrap_content"
28 android:layout_height="wrap_content"
Adrien Beraud5cf47732017-03-15 14:50:39 +010029 android:layout_alignParentLeft="true"
Adrien Béraud034d7f32016-10-03 11:36:55 -040030 android:layout_alignParentStart="true"
31 android:layout_centerVertical="true"
Aline Bonneta8011382016-11-01 12:10:16 -040032 app:srcCompat="@drawable/ic_desktop_windows_black" />
Adrien Béraud034d7f32016-10-03 11:36:55 -040033
34 <TextView
35 android:id="@+id/txt_device_label"
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
Adrien Beraud5cf47732017-03-15 14:50:39 +010038 android:layout_alignParentLeft="true"
Adrien Béraud034d7f32016-10-03 11:36:55 -040039 android:layout_alignParentStart="true"
Adrien Beraud5cf47732017-03-15 14:50:39 +010040 android:layout_alignParentTop="true"
Adrien Béraud034d7f32016-10-03 11:36:55 -040041 android:layout_centerVertical="true"
Adrien Beraud5cf47732017-03-15 14:50:39 +010042 android:layout_marginLeft="56dp"
Adrien Béraud034d7f32016-10-03 11:36:55 -040043 android:layout_marginStart="56dp"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010044 android:layout_toLeftOf="@+id/txt_device_thisflag"
45 android:layout_toStartOf="@+id/txt_device_thisflag"
46 android:ellipsize="end"
47 android:lines="1"
Adrien Beraud5cf47732017-03-15 14:50:39 +010048 android:textAppearance="@style/ListPrimary"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010049 tools:text="My device" />
Adrien Béraud034d7f32016-10-03 11:36:55 -040050
51 <TextView
52 android:id="@+id/txt_device_id"
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
Adrien Beraud5cf47732017-03-15 14:50:39 +010055 android:layout_alignLeft="@id/txt_device_label"
56 android:layout_alignStart="@+id/txt_device_label"
57 android:layout_below="@id/txt_device_label"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010058 android:layout_toLeftOf="@+id/rename_button"
59 android:layout_toStartOf="@+id/rename_button"
Adrien Béraud034d7f32016-10-03 11:36:55 -040060 android:ellipsize="middle"
61 android:maxLines="1"
Adrien Beraud5cf47732017-03-15 14:50:39 +010062 android:textAppearance="@style/TextAppearance.AppCompat.Caption"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010063 tools:text="b982672502b9f1236a68353d74734cb82f9d1fab" />
64
65 <TextView
66 android:id="@+id/txt_device_thisflag"
67 style="@style/TextAppearance.AppCompat.Small"
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:layout_alignBaseline="@+id/txt_device_label"
71 android:layout_marginLeft="8dp"
72 android:layout_marginStart="8dp"
73 android:layout_toLeftOf="@+id/rename_button"
74 android:layout_toStartOf="@+id/rename_button"
75 android:text="@string/account_device_this_indicator"
76 android:textStyle="italic" />
77
78 <ImageButton
79 android:id="@+id/rename_button"
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:layout_alignWithParentIfMissing="true"
83 android:layout_centerVertical="true"
84 android:layout_toLeftOf="@+id/revoke_button"
85 android:layout_toStartOf="@+id/revoke_button"
86 android:background="?selectableItemBackgroundBorderless"
87 android:contentDescription="@string/account_device_revoke"
88 android:padding="8dp"
89 android:tint="@color/black"
90 app:srcCompat="@drawable/ic_action_edit" />
Adrien Beraud5cf47732017-03-15 14:50:39 +010091
92 <ImageButton
93 android:id="@+id/revoke_button"
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
96 android:layout_alignParentEnd="true"
97 android:layout_alignParentRight="true"
98 android:layout_centerVertical="true"
99 android:background="?selectableItemBackgroundBorderless"
100 android:contentDescription="@string/account_device_revoke"
101 android:padding="8dp"
102 app:srcCompat="@drawable/ic_cancel_black_24dp" />
Adrien Béraud034d7f32016-10-03 11:36:55 -0400103
104</RelativeLayout>