| <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2017-2019 Savoir-faire Linux Inc. |
| |
| Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com> |
| |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 3 of the License, or |
| (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License |
| along with this program. If not, see <https://www.gnu.org/licenses/>. |
| --> |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:layout_width="match_parent" |
| android:layout_height="72dp" |
| android:padding="16dp"> |
| |
| <ImageView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentStart="true" |
| android:layout_centerVertical="true" |
| app:srcCompat="@drawable/baseline_desktop_windows_24" /> |
| |
| <TextView |
| android:id="@+id/txt_device_label" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentStart="true" |
| android:layout_alignParentTop="true" |
| android:layout_centerVertical="true" |
| android:layout_marginStart="56dp" |
| android:layout_toStartOf="@+id/txt_device_thisflag" |
| android:ellipsize="end" |
| android:lines="1" |
| android:textAppearance="@style/ListPrimary" |
| tools:text="My device" /> |
| |
| <TextView |
| android:id="@+id/txt_device_id" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignStart="@+id/txt_device_label" |
| android:layout_below="@id/txt_device_label" |
| android:layout_toStartOf="@+id/rename_button" |
| android:ellipsize="middle" |
| android:singleLine="true" |
| android:textAppearance="@style/TextAppearance.AppCompat.Caption" |
| tools:text="b982672502b9f1236a68353d74734cb82f9d1fab" /> |
| |
| <TextView |
| android:id="@+id/txt_device_thisflag" |
| style="@style/TextAppearance.AppCompat.Small" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignBaseline="@+id/txt_device_label" |
| android:layout_marginStart="8dp" |
| android:layout_toStartOf="@+id/rename_button" |
| android:text="@string/account_device_this_indicator" |
| android:textStyle="italic" /> |
| |
| <ImageButton |
| android:id="@+id/rename_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignWithParentIfMissing="true" |
| android:layout_centerVertical="true" |
| android:layout_marginStart="8dp" |
| android:layout_toStartOf="@+id/revoke_button" |
| android:background="?selectableItemBackgroundBorderless" |
| android:contentDescription="@string/account_device_revoke" |
| android:padding="8dp" |
| app:srcCompat="@drawable/baseline_edit_24" /> |
| |
| <ImageButton |
| android:id="@+id/revoke_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentEnd="true" |
| android:layout_centerVertical="true" |
| android:layout_marginStart="8dp" |
| android:background="?selectableItemBackgroundBorderless" |
| android:contentDescription="@string/account_device_revoke" |
| android:padding="8dp" |
| app:srcCompat="@drawable/baseline_cancel_24" /> |
| |
| </RelativeLayout> |