item_custom_domain.xml (1899B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public 3 - License, v. 2.0. If a copy of the MPL was not distributed with this 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 5 <LinearLayout 6 xmlns:android="http://schemas.android.com/apk/res/android" 7 xmlns:app="http://schemas.android.com/apk/res-auto" 8 xmlns:tools="http://schemas.android.com/tools" 9 android:layout_width="match_parent" 10 android:layout_height="wrap_content" 11 android:orientation="horizontal" 12 android:clickable="true" 13 android:focusable="true" 14 android:foreground="?selectableItemBackground"> 15 <TextView 16 android:id="@+id/domainView" 17 android:orientation="vertical" 18 android:layout_width="0dp" 19 android:layout_weight="1" 20 android:layout_height="wrap_content" 21 android:textAppearance="@style/TextAppearance.Material3.BodyLarge" 22 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 23 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 24 android:minHeight="?android:attr/listPreferredItemHeightSmall" 25 android:singleLine="true" 26 android:ellipsize="middle" 27 android:gravity="center_vertical" 28 tools:text="mozilla.org" /> 29 <ImageView 30 android:id="@+id/handleView" 31 android:layout_width="wrap_content" 32 android:layout_height="wrap_content" 33 android:layout_gravity="center_vertical" 34 app:srcCompat="@drawable/mozac_ic_reorder" 35 android:importantForAccessibility="no" 36 android:paddingEnd="?android:attr/listPreferredItemPaddingStart" /> 37 <CheckBox 38 android:id="@+id/checkbox" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:paddingEnd="?android:attr/listPreferredItemPaddingStart" /> 42 </LinearLayout>