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/. -->
6 xmlns:android="http://schemas.android.com/apk/res/android"
7 xmlns:app="http://schemas.android.com/apk/res-auto"
8 android:layout_width="match_parent"
9 android:layout_height="wrap_content"
10 android:gravity="center_vertical"
11 android:paddingStart="16dp"
12 android:paddingEnd="16dp"
13 android:background="@color/sync_error_background_color"
14 android:baselineAligned="false">
17 android:id="@+id/icon_frame"
18 android:layout_width="wrap_content"
19 android:layout_height="wrap_content">
20 <androidx.preference.internal.PreferenceImageView
21 android:id="@android:id/icon"
22 android:layout_width="wrap_content"
23 android:layout_height="wrap_content"
25 app:maxHeight="48dp"/>
29 android:layout_width="0dp"
30 android:layout_height="wrap_content"
31 android:layout_marginStart="15dp"
32 android:layout_marginEnd="6dp"
33 android:paddingStart="16dp"
34 android:paddingEnd="0dp"
35 android:paddingTop="16dp"
36 android:paddingBottom="16dp"
37 android:layout_weight="1">
40 android:id="@+id/errorSummary"
41 android:text="@string/preferences_account_sync_error"
42 android:layout_width="wrap_content"
43 android:layout_height="wrap_content"
44 android:textColor="@color/sync_error_text_color"
45 android:textSize="16sp"
46 android:ellipsize="marquee"
47 android:fadingEdge="horizontal"
48 android:visibility="visible"/>
51 android:id="@+id/email"
52 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:layout_below="@id/errorSummary"
55 android:layout_alignStart="@id/errorSummary"
56 android:textColor="@color/sync_error_text_color"
58 android:visibility="gone"/>
63 android:id="@android:id/widget_frame"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:gravity="center_vertical"
67 android:orientation="vertical"/>