sign_in_preference.xml (2584B)
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 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 6 xmlns:app="http://schemas.android.com/apk/res-auto" 7 xmlns:tools="http://schemas.android.com/tools" 8 android:layout_width="match_parent" 9 android:layout_height="wrap_content" 10 android:layout_margin="8dp" 11 android:background="@drawable/sign_in_preference_background" 12 android:clickable="true" 13 android:focusable="true" 14 android:elevation="4dp" 15 android:padding="16dp"> 16 17 <ImageView 18 android:id="@+id/imageView" 19 android:layout_width="72dp" 20 android:layout_height="72dp" 21 app:srcCompat="@drawable/mozac_lib_crash_notification" 22 app:layout_constraintBottom_toBottomOf="parent" 23 app:layout_constraintStart_toStartOf="parent" 24 app:layout_constraintTop_toTopOf="parent" /> 25 26 <TextView 27 android:id="@android:id/title" 28 android:layout_width="0dp" 29 android:layout_height="wrap_content" 30 android:layout_marginStart="23dp" 31 android:layout_marginBottom="10dp" 32 android:ellipsize="none" 33 android:scrollHorizontally="false" 34 android:singleLine="true" 35 tools:text="Title" 36 android:textAppearance="@style/Header16TextStyle" 37 android:textAlignment="viewStart" 38 app:layout_constraintBottom_toTopOf="@android:id/summary" 39 app:layout_constraintEnd_toEndOf="parent" 40 app:layout_constraintStart_toEndOf="@+id/imageView" 41 app:layout_constraintTop_toTopOf="parent" /> 42 43 <TextView 44 android:id="@android:id/summary" 45 android:layout_width="0dp" 46 android:layout_height="wrap_content" 47 android:layout_marginStart="23dp" 48 android:layout_marginEnd="8dp" 49 android:layout_marginBottom="8dp" 50 android:ellipsize="none" 51 android:scrollHorizontally="false" 52 tools:text="Summary" 53 android:textAlignment="viewStart" 54 android:textAppearance="?android:attr/textAppearanceSmall" 55 android:textColor="?android:attr/textColorSecondary" 56 android:textSize="16sp" 57 app:layout_constraintBottom_toBottomOf="parent" 58 app:layout_constraintEnd_toEndOf="parent" 59 app:layout_constraintStart_toEndOf="@+id/imageView" /> 60 </androidx.constraintlayout.widget.ConstraintLayout>