87 lines
3.8 KiB
XML
87 lines
3.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:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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" />
|
|
|
|
<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"
|
|
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/ThemeIndependentMaterialGreyButtonDestructive"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/permissions"
|
|
android:layout_margin="12dp"
|
|
android:text="@string/mozac_feature_addons_remove" />
|
|
</RelativeLayout>
|
|
</ScrollView>
|
|
</FrameLayout>
|