Sébastien Blin | ab53ada | 2019-01-02 17:23:00 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2017-2019 Savoir-faire Linux Inc. |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 2 | |
| 3 | Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com> |
| 4 | |
| 5 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by |
| 7 | the Free Software Foundation; either version 3 of the License, or |
| 8 | (at your option) any later version. |
| 9 | |
| 10 | This program is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | GNU General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU General Public License |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 16 | along with this program. If not, see <https://www.gnu.org/licenses/>. |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 17 | --> |
| 18 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | xmlns:app="http://schemas.android.com/apk/res-auto" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 20 | xmlns:tools="http://schemas.android.com/tools" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 21 | android:layout_width="match_parent" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 22 | android:layout_height="72dp" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 23 | android:padding="16dp"> |
| 24 | |
| 25 | <ImageView |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 26 | android:layout_width="wrap_content" |
| 27 | android:layout_height="wrap_content" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 28 | android:layout_alignParentStart="true" |
| 29 | android:layout_centerVertical="true" |
Aline Bonnet | a801138 | 2016-11-01 12:10:16 -0400 | [diff] [blame] | 30 | app:srcCompat="@drawable/ic_desktop_windows_black" /> |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 31 | |
| 32 | <TextView |
| 33 | android:id="@+id/txt_device_label" |
| 34 | android:layout_width="wrap_content" |
| 35 | android:layout_height="wrap_content" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 36 | android:layout_alignParentStart="true" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 37 | android:layout_alignParentTop="true" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 38 | android:layout_centerVertical="true" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 39 | android:layout_marginStart="56dp" |
Adrien Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame] | 40 | android:layout_toStartOf="@+id/txt_device_thisflag" |
| 41 | android:ellipsize="end" |
| 42 | android:lines="1" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 43 | android:textAppearance="@style/ListPrimary" |
Adrien Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame] | 44 | tools:text="My device" /> |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 45 | |
| 46 | <TextView |
| 47 | android:id="@+id/txt_device_id" |
| 48 | android:layout_width="wrap_content" |
| 49 | android:layout_height="wrap_content" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 50 | android:layout_alignStart="@+id/txt_device_label" |
| 51 | android:layout_below="@id/txt_device_label" |
Adrien Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame] | 52 | android:layout_toStartOf="@+id/rename_button" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 53 | android:ellipsize="middle" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 54 | android:singleLine="true" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 55 | android:textAppearance="@style/TextAppearance.AppCompat.Caption" |
Adrien Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame] | 56 | 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 Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame] | 64 | android:layout_marginStart="8dp" |
Adrien Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame] | 65 | 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 Béraud | 33d2523 | 2019-04-12 11:38:02 -0400 | [diff] [blame^] | 75 | android:layout_marginStart="8dp" |
Adrien Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame] | 76 | android:layout_toStartOf="@+id/revoke_button" |
| 77 | android:background="?selectableItemBackgroundBorderless" |
| 78 | android:contentDescription="@string/account_device_revoke" |
| 79 | android:padding="8dp" |
| 80 | android:tint="@color/black" |
| 81 | app:srcCompat="@drawable/ic_action_edit" /> |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 82 | |
| 83 | <ImageButton |
| 84 | android:id="@+id/revoke_button" |
| 85 | android:layout_width="wrap_content" |
| 86 | android:layout_height="wrap_content" |
| 87 | android:layout_alignParentEnd="true" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 88 | android:layout_centerVertical="true" |
Adrien Béraud | 33d2523 | 2019-04-12 11:38:02 -0400 | [diff] [blame^] | 89 | android:layout_marginStart="8dp" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 90 | android:background="?selectableItemBackgroundBorderless" |
| 91 | android:contentDescription="@string/account_device_revoke" |
| 92 | android:padding="8dp" |
Adrien Béraud | 7775840 | 2019-01-30 16:38:31 -0500 | [diff] [blame] | 93 | app:srcCompat="@drawable/baseline_cancel_24" /> |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 94 | |
| 95 | </RelativeLayout> |