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-05-11 18:44:18 +02:00
|
|
|
android:id="@+id/addon_container"
|
2020-02-04 07:41:52 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-11 18:44:18 +02:00
|
|
|
android:visibility="gone"
|
2020-04-09 21:56:42 +02:00
|
|
|
android:orientation="vertical">
|
2020-02-04 07:41:52 +01:00
|
|
|
|
2020-07-14 10:30:08 +02:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2020-02-10 17:34:31 +01:00
|
|
|
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-07-14 10:30:08 +02:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2020-04-23 17:32:15 +02:00
|
|
|
android:id="@+id/allow_in_private_browsing_switch"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
2020-07-21 03:20:29 +02:00
|
|
|
android:layout_below="@id/enable_switch"
|
2020-04-23 17:32:15 +02:00
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:checked="false"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:text="@string/mozac_feature_addons_settings_run_in_private_browsing"
|
|
|
|
android:padding="16dp"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textColor="?primaryText"
|
|
|
|
android:drawablePadding="32dp"
|
|
|
|
android:drawableStart="@drawable/ic_private_browsing"
|
|
|
|
app:drawableTint="?primaryText" />
|
|
|
|
|
2020-02-10 17:34:31 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/settings"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-07-21 03:20:29 +02:00
|
|
|
android:layout_below="@id/allow_in_private_browsing_switch"
|
2020-02-10 17:34:31 +01:00
|
|
|
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"
|
2020-07-21 03:20:29 +02:00
|
|
|
android:layout_below="@id/settings"
|
2020-02-10 17:34:31 +01:00
|
|
|
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"
|
2020-07-21 03:20:29 +02:00
|
|
|
android:layout_below="@id/details"
|
2020-02-10 17:34:31 +01:00
|
|
|
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
|
|
|
|
2020-07-14 10:30:08 +02:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2020-02-10 17:34:31 +01:00
|
|
|
android:id="@+id/remove_add_on"
|
2020-04-16 00:49:02 +02:00
|
|
|
style="@style/DestructiveButton"
|
2020-04-16 17:58:20 +02:00
|
|
|
android:layout_marginHorizontal="16dp"
|
2020-07-21 03:20:29 +02:00
|
|
|
android:layout_below="@id/permissions"
|
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-05-08 20:37:51 +02:00
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/add_on_progress_bar"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center" />
|
|
|
|
|
2020-02-07 17:52:24 +01:00
|
|
|
</FrameLayout>
|