You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.9 KiB
XML
45 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
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:background="?selectableItemBackgroundBorderless"
|
|
android:layout_width="76dp"
|
|
android:layout_height="80dp">
|
|
|
|
<ImageButton
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:id="@+id/device_icon"
|
|
android:importantForAccessibility="no"
|
|
android:layout_marginTop="8dp"
|
|
android:background="@drawable/device_background"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@+id/device_name"
|
|
tools:srcCompat="@tools:sample/avatars"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/device_name"
|
|
android:textSize="10sp"
|
|
android:textAlignment="gravity"
|
|
android:gravity="center|top"
|
|
android:ellipsize="end"
|
|
android:lines="2"
|
|
android:layout_marginTop="3dp"
|
|
android:layout_marginBottom="5dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/device_icon"
|
|
tools:text="Firefox on Macbook Pro"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |