Revision control
Copy as Markdown
<?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
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">
<com.google.android.material.switchmaterial.SwitchMaterial
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="?attr/textPrimary"
android:textSize="16sp" />
<com.google.android.material.switchmaterial.SwitchMaterial
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="?attr/textPrimary"
android:drawablePadding="32dp"
android:drawableStart="@drawable/ic_private_browsing"
app:drawableTint="?attr/textPrimary" />
<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="?attr/textPrimary"
app:drawableStartCompat="@drawable/mozac_ic_settings_24"
app:drawableTint="?attr/textPrimary" />
<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="?attr/textPrimary"
android:text="@string/mozac_feature_addons_details"
android:textSize="16sp"
app:drawableStartCompat="@drawable/ic_info"
app:drawableTint="?attr/textPrimary" />
<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="?attr/textPrimary"
android:textSize="16sp"
app:drawableStartCompat="@drawable/ic_permission" />
<com.google.android.material.button.MaterialButton
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" />
<com.google.android.material.button.MaterialButton
android:id="@+id/report_add_on"
style="@style/NeutralButton"
android:layout_marginHorizontal="16dp"
android:layout_below="@id/remove_add_on"
android:text="@string/mozac_feature_addons_report" />
</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>