Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- Copyright (c) 2017 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 |
| 26 | android:id="@+id/icon_device" |
| 27 | android:layout_width="wrap_content" |
| 28 | android:layout_height="wrap_content" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 29 | android:layout_alignParentLeft="true" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 30 | android:layout_alignParentStart="true" |
| 31 | android:layout_centerVertical="true" |
Aline Bonnet | a801138 | 2016-11-01 12:10:16 -0400 | [diff] [blame] | 32 | app:srcCompat="@drawable/ic_desktop_windows_black" /> |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 33 | |
| 34 | <TextView |
| 35 | android:id="@+id/txt_device_label" |
| 36 | android:layout_width="wrap_content" |
| 37 | android:layout_height="wrap_content" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 38 | android:layout_alignParentLeft="true" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 39 | android:layout_alignParentStart="true" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 40 | android:layout_alignParentTop="true" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 41 | android:layout_centerVertical="true" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 42 | android:layout_marginLeft="56dp" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 43 | android:layout_marginStart="56dp" |
Adrien Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame^] | 44 | android:layout_toLeftOf="@+id/txt_device_thisflag" |
| 45 | android:layout_toStartOf="@+id/txt_device_thisflag" |
| 46 | android:ellipsize="end" |
| 47 | android:lines="1" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 48 | android:textAppearance="@style/ListPrimary" |
Adrien Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame^] | 49 | tools:text="My device" /> |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 50 | |
| 51 | <TextView |
| 52 | android:id="@+id/txt_device_id" |
| 53 | android:layout_width="wrap_content" |
| 54 | android:layout_height="wrap_content" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 55 | android:layout_alignLeft="@id/txt_device_label" |
| 56 | android:layout_alignStart="@+id/txt_device_label" |
| 57 | android:layout_below="@id/txt_device_label" |
Adrien Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame^] | 58 | android:layout_toLeftOf="@+id/rename_button" |
| 59 | android:layout_toStartOf="@+id/rename_button" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 60 | android:ellipsize="middle" |
| 61 | android:maxLines="1" |
Adrien Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 62 | android:textAppearance="@style/TextAppearance.AppCompat.Caption" |
Adrien Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame^] | 63 | 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 Beraud | 5cf4773 | 2017-03-15 14:50:39 +0100 | [diff] [blame] | 91 | |
| 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éraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 103 | |
| 104 | </RelativeLayout> |