Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- Copyright (c) 2016 Savoir-faire Linux Inc. |
| 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 |
| 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | --> |
| 18 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="56dp" |
| 22 | android:padding="16dp"> |
| 23 | |
| 24 | <ImageView |
| 25 | android:id="@+id/icon_device" |
| 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" |
| 37 | android:layout_centerVertical="true" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 38 | android:layout_marginStart="56dp" |
| 39 | android:text="8E24CCF4" |
| 40 | android:textAppearance="@style/ListPrimary" /> |
| 41 | |
| 42 | <TextView |
| 43 | android:id="@+id/txt_device_id" |
| 44 | android:layout_width="wrap_content" |
| 45 | android:layout_height="wrap_content" |
| 46 | android:layout_alignBaseline="@+id/txt_device_label" |
| 47 | android:layout_alignParentEnd="true" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 48 | android:layout_marginStart="24dp" |
Adrien Béraud | 1347b40 | 2016-10-12 16:16:04 -0400 | [diff] [blame] | 49 | android:layout_toEndOf="@+id/txt_device_label" |
Adrien Béraud | 034d7f3 | 2016-10-03 11:36:55 -0400 | [diff] [blame] | 50 | android:ellipsize="middle" |
| 51 | android:maxLines="1" |
| 52 | android:text="e3806a4963993ed1e8adc5c0ed9809c354dfc872" |
| 53 | android:textAppearance="@style/TextAppearance.AppCompat.Caption" /> |
| 54 | |
| 55 | </RelativeLayout> |