112 lines
4.8 KiB
XML
112 lines
4.8 KiB
XML
<?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/. -->
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="6dp">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/addon_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
|
|
<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"
|
|
android:layout_marginStart="54dp"
|
|
android:padding="16dp"
|
|
android:text="@string/mozac_feature_addons_enabled"
|
|
android:textColor="?primaryText"
|
|
android:textSize="16sp" />
|
|
|
|
<Switch
|
|
android:id="@+id/allow_in_private_browsing_switch"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical|end"
|
|
android:layout_below="@+id/enable_switch"
|
|
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" />
|
|
|
|
<TextView
|
|
android:id="@+id/settings"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/allow_in_private_browsing_switch"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:drawablePadding="32dp"
|
|
android:padding="16dp"
|
|
android:text="@string/mozac_feature_addons_settings"
|
|
android:textSize="16sp"
|
|
android:textColor="?primaryText"
|
|
app:drawableStartCompat="@drawable/ic_settings"
|
|
app:drawableTint="?primaryText" />
|
|
|
|
<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"
|
|
android:drawablePadding="32dp"
|
|
android:padding="16dp"
|
|
android:textColor="?primaryText"
|
|
android:text="@string/mozac_feature_addons_details"
|
|
android:textSize="16sp"
|
|
app:drawableStartCompat="@drawable/ic_info"
|
|
app:drawableTint="?primaryText" />
|
|
|
|
<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"
|
|
android:drawablePadding="32dp"
|
|
android:padding="16dp"
|
|
android:text="@string/mozac_feature_addons_permissions"
|
|
android:textColor="?primaryText"
|
|
android:textSize="16sp"
|
|
app:drawableStartCompat="@drawable/ic_permission" />
|
|
|
|
<Button
|
|
android:id="@+id/remove_add_on"
|
|
style="@style/DestructiveButton"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_below="@+id/permissions"
|
|
android:text="@string/mozac_feature_addons_remove" />
|
|
</RelativeLayout>
|
|
</ScrollView>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/add_on_progress_bar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center" />
|
|
|
|
</FrameLayout>
|