2020-02-04 07:41:52 +01:00
|
|
|
<?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/. -->
|
2020-02-07 17:52:24 +01:00
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-02-04 07:41:52 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="6dp">
|
|
|
|
|
2020-02-10 17:34:31 +01:00
|
|
|
<ScrollView
|
2020-02-04 07:41:52 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-02-10 17:34:31 +01:00
|
|
|
android:layout_height="wrap_content">
|
2020-02-04 07:41:52 +01:00
|
|
|
|
2020-02-10 17:34:31 +01:00
|
|
|
<RelativeLayout
|
2020-02-04 07:41:52 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-09 21:56:42 +02:00
|
|
|
android:orientation="vertical">
|
2020-02-04 07:41:52 +01:00
|
|
|
|
2020-02-10 17:34:31 +01:00
|
|
|
<Switch
|
|
|
|
android:id="@+id/enable_switch"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:checked="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-03-26 18:16:42 +01:00
|
|
|
android:layout_marginStart="54dp"
|
2020-02-10 17:34:31 +01:00
|
|
|
android:padding="16dp"
|
2020-03-26 18:16:42 +01:00
|
|
|
android:text="@string/mozac_feature_addons_enabled"
|
|
|
|
android:textColor="?primaryText"
|
|
|
|
android:textSize="16sp" />
|
2020-02-04 07:41:52 +01:00
|
|
|
|
2020-02-10 17:34:31 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/settings"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/enable_switch"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2020-03-26 18:16:42 +01:00
|
|
|
android:drawablePadding="32dp"
|
2020-02-10 17:34:31 +01:00
|
|
|
android:padding="16dp"
|
|
|
|
android:text="@string/mozac_feature_addons_settings"
|
2020-03-26 18:16:42 +01:00
|
|
|
android:textSize="16sp"
|
|
|
|
android:textColor="?primaryText"
|
|
|
|
app:drawableStartCompat="@drawable/ic_settings"
|
2020-02-27 20:11:49 +01:00
|
|
|
app:drawableTint="?primaryText" />
|
2020-02-04 07:41:52 +01:00
|
|
|
|
2020-02-10 17:34:31 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/details"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/settings"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2020-03-26 18:16:42 +01:00
|
|
|
android:drawablePadding="32dp"
|
2020-02-10 17:34:31 +01:00
|
|
|
android:padding="16dp"
|
2020-03-26 18:16:42 +01:00
|
|
|
android:textColor="?primaryText"
|
2020-02-10 17:34:31 +01:00
|
|
|
android:text="@string/mozac_feature_addons_details"
|
2020-03-26 18:16:42 +01:00
|
|
|
android:textSize="16sp"
|
|
|
|
app:drawableStartCompat="@drawable/ic_info"
|
2020-02-27 20:11:49 +01:00
|
|
|
app:drawableTint="?primaryText" />
|
2020-02-04 07:41:52 +01:00
|
|
|
|
2020-02-10 17:34:31 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/permissions"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/details"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2020-03-26 18:16:42 +01:00
|
|
|
android:drawablePadding="32dp"
|
2020-02-10 17:34:31 +01:00
|
|
|
android:padding="16dp"
|
|
|
|
android:text="@string/mozac_feature_addons_permissions"
|
2020-03-26 18:16:42 +01:00
|
|
|
android:textColor="?primaryText"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:drawableStartCompat="@drawable/ic_permission" />
|
2020-02-10 17:34:31 +01:00
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/remove_add_on"
|
2020-02-12 00:06:57 +01:00
|
|
|
style="@style/ThemeIndependentMaterialGreyButtonDestructive"
|
2020-02-10 17:34:31 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/permissions"
|
2020-02-12 00:06:57 +01:00
|
|
|
android:layout_margin="12dp"
|
2020-02-27 20:11:49 +01:00
|
|
|
android:text="@string/mozac_feature_addons_remove" />
|
2020-02-10 17:34:31 +01:00
|
|
|
</RelativeLayout>
|
|
|
|
</ScrollView>
|
2020-02-07 17:52:24 +01:00
|
|
|
</FrameLayout>
|