|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <layout xmlns:android="http://schemas.android.com/apk/res/android"
|
3 |
| - xmlns:app="http://schemas.android.com/apk/res-auto"> |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + xmlns:tools="http://schemas.android.com/tools"> |
4 | 5 |
|
5 | 6 | <data>
|
6 | 7 | <variable
|
|
28 | 29 | android:layout_marginTop="50dp"
|
29 | 30 | android:src="@drawable/ic_icon_back"
|
30 | 31 | android:drawableTint="@color/fog_void_tint"
|
31 |
| - android:tint="@color/fog_void_tint" |
32 | 32 | android:background="@drawable/media_button"
|
33 | 33 | app:layout_constraintStart_toStartOf="parent"
|
34 | 34 | app:layout_constraintTop_toTopOf="parent" />
|
35 | 35 |
|
36 |
| - <LinearLayout |
37 |
| - android:id="@+id/settingsMasthead" |
| 36 | + <ImageView |
| 37 | + android:id="@+id/ff_logo_settings" |
| 38 | + android:layout_width="130dp" |
| 39 | + android:layout_height="84dp" |
| 40 | + android:layout_gravity="center" |
| 41 | + android:layout_marginTop="23dp" |
| 42 | + android:clickable="true" |
| 43 | + android:scaleType="fitCenter" |
| 44 | + android:src="@drawable/ff_logo" |
| 45 | + app:layout_constraintEnd_toEndOf="parent" |
| 46 | + app:layout_constraintStart_toStartOf="parent" |
| 47 | + app:layout_constraintTop_toTopOf="parent" /> |
| 48 | + |
| 49 | + <TextView |
| 50 | + android:id="@+id/versionText" |
38 | 51 | android:layout_width="wrap_content"
|
39 | 52 | android:layout_height="wrap_content"
|
40 |
| - android:layout_gravity="center_horizontal" |
41 |
| - android:layout_marginTop="23dp" |
42 | 53 | android:clickable="true"
|
43 |
| - android:contextClickable="false" |
44 |
| - android:focusable="true" |
45 |
| - android:gravity="center_horizontal" |
46 |
| - android:orientation="vertical" |
47 |
| - android:contentDescription="Wolvic logo" |
| 54 | + android:fontFamily="sans-serif" |
| 55 | + android:gravity="center" |
| 56 | + android:minHeight="@dimen/settings_outline_button_height" |
| 57 | + android:text="@string/app_name" |
| 58 | + android:textColor="@color/white" |
| 59 | + android:textSize="@dimen/text_big_size" |
48 | 60 | app:layout_constraintEnd_toEndOf="parent"
|
49 | 61 | app:layout_constraintStart_toStartOf="parent"
|
50 |
| - app:layout_constraintTop_toTopOf="parent"> |
51 |
| - |
52 |
| - <ImageView |
53 |
| - android:id="@+id/ff_logo_settings" |
54 |
| - android:layout_width="130dp" |
55 |
| - android:layout_height="84dp" |
56 |
| - android:layout_gravity="center" |
57 |
| - android:clickable="false" |
58 |
| - android:scaleType="fitCenter" |
59 |
| - android:src="@drawable/ff_logo" /> |
60 |
| - |
61 |
| - <TextView |
62 |
| - android:id="@+id/versionText" |
63 |
| - android:layout_width="wrap_content" |
64 |
| - android:layout_height="wrap_content" |
65 |
| - android:layout_marginTop="5dp" |
66 |
| - android:clickable="false" |
67 |
| - android:fontFamily="sans-serif" |
68 |
| - android:gravity="center" |
69 |
| - android:textColor="@color/white" |
70 |
| - android:text="@string/app_name" |
71 |
| - android:textSize="@dimen/text_big_size" /> |
72 |
| - |
73 |
| - <TextView |
74 |
| - android:id="@+id/surveyLink" |
75 |
| - android:layout_width="wrap_content" |
76 |
| - android:layout_height="wrap_content" |
77 |
| - android:clickable="false" |
78 |
| - android:fontFamily="sans-serif" |
79 |
| - android:gravity="center" |
80 |
| - android:text="@string/settings_send_your_feedback" |
81 |
| - android:textColorHighlight="@android:color/transparent" |
82 |
| - android:textColorLink="@color/azure" |
83 |
| - android:textColor="@color/azure" |
84 |
| - android:autoLink="all" |
85 |
| - android:textStyle="bold" |
86 |
| - android:textSize="@dimen/text_smaller_size" |
87 |
| - app:visibleGone="@{DeviceType.getStoreType() != DeviceType.StoreType.MAINLAND_CHINA}" /> |
88 |
| - |
89 |
| - <TextView |
90 |
| - android:id="@+id/chinaLicenseNumber" |
91 |
| - android:layout_width="wrap_content" |
92 |
| - android:layout_height="wrap_content" |
93 |
| - android:clickable="false" |
94 |
| - android:fontFamily="sans-serif" |
95 |
| - android:gravity="center" |
96 |
| - android:text="@string/rCN_license_number" |
97 |
| - android:textColor="@color/azure" |
98 |
| - android:textColorHighlight="@android:color/transparent" |
99 |
| - android:textColorLink="@color/azure" |
100 |
| - android:textSize="@dimen/text_medium_size" |
101 |
| - android:textStyle="bold" |
102 |
| - app:visibleGone="@{DeviceType.getStoreType() == DeviceType.StoreType.MAINLAND_CHINA}" /> |
103 |
| - |
104 |
| - <TextView |
105 |
| - android:id="@+id/buildText" |
106 |
| - android:layout_width="wrap_content" |
107 |
| - android:layout_height="wrap_content" |
108 |
| - android:clickable="false" |
109 |
| - android:fontFamily="sans-serif" |
110 |
| - android:gravity="center" |
111 |
| - android:text="@string/settings_version_developer" |
112 |
| - android:textColor="@color/white" |
113 |
| - android:textSize="@dimen/text_smaller_size" /> |
114 |
| - </LinearLayout> |
| 62 | + app:layout_constraintTop_toBottomOf="@id/ff_logo_settings" /> |
| 63 | + |
| 64 | + <TextView |
| 65 | + android:id="@+id/chinaLicenseNumber" |
| 66 | + android:layout_width="wrap_content" |
| 67 | + android:layout_height="wrap_content" |
| 68 | + android:clickable="false" |
| 69 | + android:fontFamily="sans-serif" |
| 70 | + android:gravity="center" |
| 71 | + android:text="@string/rCN_license_number" |
| 72 | + android:textColor="@color/azure" |
| 73 | + android:textColorHighlight="@android:color/transparent" |
| 74 | + android:textColorLink="@color/azure" |
| 75 | + android:textSize="@dimen/text_medium_size" |
| 76 | + android:textStyle="bold" |
| 77 | + android:visibility="gone" |
| 78 | + app:layout_constraintEnd_toEndOf="parent" |
| 79 | + app:layout_constraintStart_toStartOf="parent" |
| 80 | + app:layout_constraintTop_toBottomOf="@id/versionText" |
| 81 | + app:visibleGone="@{DeviceType.getStoreType() == DeviceType.StoreType.MAINLAND_CHINA}" |
| 82 | + tools:text="(China license number)" /> |
| 83 | + |
| 84 | + <com.google.android.material.button.MaterialButton |
| 85 | + android:id="@+id/surveyLink" |
| 86 | + style="@style/SettingsLinkButtonStyle" |
| 87 | + android:src="@drawable/baseline_contact_support_24" |
| 88 | + android:text="@string/settings_send_your_feedback" |
| 89 | + android:theme="@style/FxR.Dark" |
| 90 | + app:icon="@drawable/baseline_contact_support_24" |
| 91 | + app:layout_constraintEnd_toEndOf="@id/scrollView2" |
| 92 | + app:layout_constraintBottom_toBottomOf="@id/whatsNewButton" |
| 93 | + app:visibleGone="@{DeviceType.getStoreType() != DeviceType.StoreType.MAINLAND_CHINA}" /> |
| 94 | + |
| 95 | + <TextView |
| 96 | + android:id="@+id/buildText" |
| 97 | + android:layout_width="wrap_content" |
| 98 | + android:layout_height="wrap_content" |
| 99 | + android:clickable="false" |
| 100 | + android:fontFamily="sans-serif" |
| 101 | + android:gravity="center" |
| 102 | + android:minHeight="@dimen/settings_outline_button_height" |
| 103 | + android:text="@string/settings_version_developer" |
| 104 | + android:textColor="@color/white" |
| 105 | + android:textSize="@dimen/text_smaller_size" |
| 106 | + app:layout_constraintEnd_toEndOf="parent" |
| 107 | + app:layout_constraintStart_toStartOf="parent" |
| 108 | + app:layout_constraintTop_toBottomOf="@id/chinaLicenseNumber" /> |
| 109 | + |
| 110 | + <com.google.android.material.button.MaterialButton |
| 111 | + android:id="@+id/whatsNewButton" |
| 112 | + style="@style/SettingsLinkButtonStyle" |
| 113 | + android:layout_marginStart="8dp" |
| 114 | + android:layout_marginBottom="8dp" |
| 115 | + android:backgroundTint="@{settingsmodel.isWhatsNewVisible?@color/azure:@color/asphalt}" |
| 116 | + android:src="@drawable/ic_whats_new" |
| 117 | + android:text="@string/settings_whats_new" |
| 118 | + android:theme="@style/FxR.Dark" |
| 119 | + android:layout_marginTop="10dp" |
| 120 | + app:icon="@drawable/ic_whats_new" |
| 121 | + app:layout_constraintEnd_toEndOf="@id/ff_logo_settings" |
| 122 | + app:layout_constraintStart_toStartOf="@id/ff_logo_settings" |
| 123 | + app:layout_constraintTop_toBottomOf="@id/scrollView2" /> |
115 | 124 |
|
116 | 125 | <ScrollView
|
117 | 126 | android:id="@+id/scrollView2"
|
|
124 | 133 | android:scrollbars="none"
|
125 | 134 | app:layout_constraintEnd_toEndOf="parent"
|
126 | 135 | app:layout_constraintStart_toStartOf="parent"
|
127 |
| - app:layout_constraintTop_toBottomOf="@+id/settingsMasthead"> |
| 136 | + app:layout_constraintTop_toBottomOf="@id/buildText"> |
128 | 137 |
|
129 | 138 | <HorizontalScrollView
|
130 | 139 | android:layout_width="wrap_content"
|
|
207 | 216 | app:honeycombButtonText="@string/settings_controller_options"
|
208 | 217 | app:honeycombButtonTextSize="@dimen/settings_main_button_text_width" />
|
209 | 218 |
|
| 219 | + <com.igalia.wolvic.ui.views.HoneycombButton |
| 220 | + android:id="@+id/addonsButton" |
| 221 | + style="?attr/honeycombButtonStyle" |
| 222 | + app:honeycombButtonIcon="@drawable/ic_icon_addons" |
| 223 | + app:honeycombButtonText="@string/url_addons_title" |
| 224 | + app:honeycombButtonTextSize="@dimen/settings_main_button_text_width" /> |
| 225 | + |
210 | 226 | <com.igalia.wolvic.ui.views.HoneycombButton
|
211 | 227 | android:id="@+id/helpButton"
|
212 | 228 | style="?attr/honeycombButtonStyle"
|
213 | 229 | app:honeycombButtonIcon="@drawable/ic_settings_help"
|
214 | 230 | app:honeycombButtonText="@string/settings_help"
|
215 | 231 | app:honeycombButtonTextSize="@dimen/settings_main_button_text_width" />
|
216 |
| - |
217 |
| - <RelativeLayout |
218 |
| - android:layout_width="136dp" |
219 |
| - android:layout_height="136dp" |
220 |
| - android:layout_marginEnd="-10dp"> |
221 |
| - <com.igalia.wolvic.ui.views.HoneycombButton |
222 |
| - android:id="@+id/whatsNewButton" |
223 |
| - style="?attr/honeycombButtonStyle" |
224 |
| - app:honeycombButtonIcon="@drawable/ic_whats_new" |
225 |
| - app:honeycombButtonText="@string/settings_whats_new" |
226 |
| - app:honeycombButtonTextSize="@dimen/settings_main_button_text_width" /> |
227 |
| - <com.google.android.material.textview.MaterialTextView |
228 |
| - android:layout_width="6dp" |
229 |
| - android:layout_height="6dp" |
230 |
| - android:layout_marginTop="48dp" |
231 |
| - android:layout_marginEnd="58dp" |
232 |
| - android:layout_alignParentTop="true" |
233 |
| - android:layout_alignParentEnd="true" |
234 |
| - android:background="@drawable/downloads_badge" |
235 |
| - app:visibleGone="@{settingsmodel.isWhatsNewVisible}"/> |
236 |
| - </RelativeLayout> |
237 | 232 | </LinearLayout>
|
238 | 233 | </RelativeLayout>
|
239 | 234 | </HorizontalScrollView>
|
|
0 commit comments