<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright © 2017-2022 Soren Stoutner <soren@stoutner.com>.
+ Copyright 2017-2023 Soren Stoutner <soren@stoutner.com>.
This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
<ScrollView android:id="@+id/domain_settings_scrollview"
xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:focusable="true"
android:focusableInTouchMode="true"
- android:descendantFocusability="beforeDescendants"
- xmlns:app="http://schemas.android.com/apk/res-auto">
+ android:descendantFocusability="beforeDescendants" >
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_margin="12dp"
android:orientation="vertical"
android:divider="?android:attr/dividerVertical" >
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="vertical" >
+ android:orientation="vertical"
+ android:layout_marginTop="12dp"
+ android:layout_marginStart="12dp"
+ android:layout_marginEnd="12dp" >
<LinearLayout
android:layout_height="wrap_content"
<!-- JavaScript. -->
<LinearLayout
+ android:id="@+id/javascript_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal" >
+ android:orientation="vertical"
+ android:padding="12dp" >
- <ImageView
- android:id="@+id/javascript_imageview"
+ <TextView
android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginTop="1dp"
- android:layout_marginEnd="10dp"
- android:layout_gravity="center_vertical"
- tools:ignore="contentDescription" />
-
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/javascript_switch"
+ android:layout_width="match_parent"
+ android:text="@string/javascript" />
+
+ <LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_marginStart="8dp"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"
- android:text="@string/javascript"
- android:textColor="?android:textColorPrimary"
- android:textSize="18sp" />
+ android:text="@string/javascript" >
+
+ <ImageView
+ android:id="@+id/javascript_imageview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginTop="1dp"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="center_vertical"
+ android:contentDescription="@string/javascript" />
+
+ <Spinner
+ android:id="@+id/javascript_spinner"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/javascript_textview"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_marginStart="45dp"
+ android:layout_marginEnd="36dp"
+ android:textSize="13sp" />
</LinearLayout>
<!-- Cookies. -->
<LinearLayout
+ android:id="@+id/cookies_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal" >
+ android:orientation="vertical"
+ android:padding="12dp" >
- <ImageView
- android:id="@+id/cookies_imageview"
+ <TextView
android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginTop="1dp"
- android:layout_marginEnd="10dp"
- android:layout_gravity="center_vertical"
- tools:ignore="contentDescription" />
-
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/cookies_switch"
+ android:layout_width="match_parent"
+ android:text="@string/cookies" />
+
+ <LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_marginStart="8dp"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"
- android:text="@string/cookies"
- android:textColor="?android:textColorPrimary"
- android:textSize="18sp" />
+ android:text="@string/cookies" >
+
+ <ImageView
+ android:id="@+id/cookies_imageview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginTop="1dp"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/cookies_enabled"
+ app:tint="@color/yellow_icon_selector"
+ android:contentDescription="@string/cookies" />
+
+ <Spinner
+ android:id="@+id/cookies_spinner"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/cookies_textview"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_marginStart="45dp"
+ android:layout_marginEnd="36dp"
+ android:textSize="13sp" />
</LinearLayout>
<!-- DOM Storage. -->
<LinearLayout
+ android:id="@+id/dom_storage_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal" >
+ android:orientation="vertical"
+ android:padding="12dp" >
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/dom_storage" />
- <ImageView
- android:id="@+id/dom_storage_imageview"
+ <LinearLayout
android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginTop="1dp"
- android:layout_marginEnd="10dp"
- android:layout_gravity="center_vertical"
- tools:ignore="contentDescription" />
-
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/dom_storage_switch"
+ android:layout_width="match_parent"
+ android:text="@string/dom_storage" >
+
+ <ImageView
+ android:id="@+id/dom_storage_imageview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginTop="1dp"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/dom_storage_enabled"
+ app:tint="@color/yellow_icon_selector"
+ android:contentDescription="@string/dom_storage" />
+
+ <Spinner
+ android:id="@+id/dom_storage_spinner"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/dom_storage_textview"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_marginStart="8dp"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"
- android:text="@string/dom_storage_preference"
- android:textColor="?android:textColorPrimary"
- android:textSize="18sp" />
+ android:layout_marginStart="45dp"
+ android:layout_marginEnd="36dp"
+ android:textSize="13sp" />
</LinearLayout>
- <!-- Form Data. -->
+ <!-- Form Data. This may be removed one the minimum API >= 26. -->
<LinearLayout
+ android:id="@+id/form_data_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal" >
+ android:orientation="vertical"
+ android:padding="12dp" >
- <ImageView
- android:id="@+id/form_data_imageview"
+ <TextView
android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginTop="1dp"
- android:layout_marginEnd="10dp"
- android:layout_gravity="center_vertical"
- tools:ignore="contentDescription" />
-
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/form_data_switch"
+ android:layout_width="match_parent"
+ android:text="@string/form_data" />
+
+ <LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_marginStart="8dp"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"
- android:text="@string/form_data"
- android:textColor="?android:textColorPrimary"
- android:textSize="18sp" />
+ android:orientation="horizontal" >
+
+ <ImageView
+ android:id="@+id/form_data_imageview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginTop="1dp"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/form_data_enabled"
+ app:tint="@color/yellow_icon_selector"
+ android:contentDescription="@string/form_data" />
+
+ <Spinner
+ android:id="@+id/form_data_spinner"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/form_data_textview"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_marginStart="45dp"
+ android:layout_marginEnd="36dp"
+ android:textSize="13sp" />
</LinearLayout>
<!-- EasyList. -->
<LinearLayout
+ android:id="@+id/easylist_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal" >
+ android:orientation="vertical"
+ android:padding="12dp" >
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/easylist" />
- <ImageView
- android:id="@+id/easylist_imageview"
+ <LinearLayout
android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginTop="1dp"
- android:layout_marginEnd="10dp"
- android:layout_gravity="center_vertical"
- android:src="@drawable/block_ads_enabled"
- app:tint="@color/blue_icon_selector"
- tools:ignore="contentDescription" />
-
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/easylist_switch"
+ android:layout_width="match_parent"
+ android:orientation="horizontal" >
+
+ <ImageView
+ android:id="@+id/easylist_imageview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginTop="1dp"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/block_ads_enabled"
+ app:tint="@color/blue_icon_selector"
+ android:contentDescription="@string/easylist" />
+
+ <Spinner
+ android:id="@+id/easylist_spinner"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/easylist_textview"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_marginStart="8dp"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"
- android:text="@string/easylist"
- android:textColor="?android:textColorPrimary"
- android:textSize="18sp" />
+ android:layout_marginStart="45dp"
+ android:layout_marginEnd="36dp"
+ android:textSize="13sp" />
</LinearLayout>
<!-- EasyPrivacy. -->
<LinearLayout
+ android:id="@+id/easyprivacy_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal" >
+ android:orientation="vertical"
+ android:padding="12dp" >
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/easyprivacy" />
- <ImageView
- android:id="@+id/easyprivacy_imageview"
+ <LinearLayout
android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginTop="1dp"
- android:layout_marginEnd="10dp"
- android:layout_gravity="center_vertical"
- android:src="@drawable/block_tracking_enabled"
- app:tint="@color/blue_icon_selector"
- tools:ignore="contentDescription" />
-
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/easyprivacy_switch"
+ android:layout_width="match_parent"
+ android:orientation="horizontal" >
+
+ <ImageView
+ android:id="@+id/easyprivacy_imageview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginTop="1dp"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/block_tracking_enabled"
+ app:tint="@color/blue_icon_selector"
+ android:contentDescription="@string/easyprivacy" />
+
+ <Spinner
+ android:id="@+id/easyprivacy_spinner"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/easyprivacy_textview"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_marginStart="8dp"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"
- android:text="@string/easyprivacy"
- android:textColor="?android:textColorPrimary"
- android:textSize="18sp" />
+ android:layout_marginStart="45dp"
+ android:layout_marginEnd="36dp"
+ android:textSize="13sp" />
</LinearLayout>
<!-- Fanboy's Annoyance List. -->
<LinearLayout
+ android:id="@+id/fanboys_annoyance_list_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal" >
+ android:orientation="vertical"
+ android:padding="12dp" >
- <ImageView
- android:id="@+id/fanboys_annoyance_list_imageview"
+ <TextView
android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginTop="1dp"
- android:layout_marginEnd="10dp"
- android:layout_gravity="center_vertical"
- android:src="@drawable/social_media_enabled"
- app:tint="@color/blue_icon_selector"
- tools:ignore="contentDescription" />
-
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/fanboys_annoyance_list_switch"
+ android:layout_width="match_parent"
+ android:text="@string/fanboys_annoyance_list" />
+
+ <LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_marginStart="8dp"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"
- android:text="@string/fanboys_annoyance_list"
- android:textColor="?android:textColorPrimary"
- android:textSize="18sp" />
+ android:orientation="horizontal" >
+
+ <ImageView
+ android:id="@+id/fanboys_annoyance_list_imageview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginTop="1dp"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/social_media_enabled"
+ app:tint="@color/blue_icon_selector"
+ android:contentDescription="@string/fanboys_annoyance_list" />
+
+ <Spinner
+ android:id="@+id/fanboys_annoyance_list_spinner"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/fanboys_annoyance_list_textview"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_marginStart="45dp"
+ android:layout_marginEnd="36dp"
+ android:textSize="13sp" />
</LinearLayout>
<!-- Fanboy's Social Blocking List. -->
<LinearLayout
+ android:id="@+id/fanboys_social_blocking_list_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal" >
+ android:orientation="vertical"
+ android:padding="12dp" >
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/fanboys_social_blocking_list" />
- <ImageView
- android:id="@+id/fanboys_social_blocking_list_imageview"
+ <LinearLayout
android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginTop="1dp"
- android:layout_marginEnd="10dp"
- android:layout_gravity="center_vertical"
- android:src="@drawable/social_media_enabled"
- app:tint="@color/blue_icon_selector"
- tools:ignore="contentDescription" />
-
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/fanboys_social_blocking_list_switch"
+ android:layout_width="match_parent"
+ android:orientation="horizontal" >
+
+ <ImageView
+ android:id="@+id/fanboys_social_blocking_list_imageview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginTop="1dp"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/social_media_enabled"
+ app:tint="@color/blue_icon_selector"
+ android:contentDescription="@string/fanboys_social_blocking_list" />
+
+ <Spinner
+ android:id="@+id/fanboys_social_blocking_list_spinner"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/fanboys_social_blocking_list_textview"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_marginStart="8dp"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"
- android:text="@string/fanboys_social_blocking_list"
- android:textColor="?android:textColorPrimary"
- android:textSize="18sp" />
+ android:layout_marginStart="45dp"
+ android:layout_marginEnd="36dp"
+ android:textSize="13sp" />
</LinearLayout>
<!-- UltraList. -->
<LinearLayout
+ android:id="@+id/ultralist_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal" >
+ android:orientation="vertical"
+ android:padding="12dp" >
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/ultralist" />
- <ImageView
- android:id="@+id/ultralist_imageview"
+ <LinearLayout
android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginTop="1dp"
- android:layout_marginEnd="10dp"
- android:layout_gravity="center_vertical"
- android:src="@drawable/block_ads_enabled"
- app:tint="@color/blue_icon_selector"
- tools:ignore="contentDescription" />
-
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/ultralist_switch"
+ android:layout_width="match_parent"
+ android:orientation="horizontal" >
+
+ <ImageView
+ android:id="@+id/ultralist_imageview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginTop="1dp"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/block_ads_enabled"
+ app:tint="@color/blue_icon_selector"
+ android:contentDescription="@string/ultralist" />
+
+ <Spinner
+ android:id="@+id/ultralist_spinner"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/ultralist_textview"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_marginStart="8dp"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"
- android:text="@string/ultralist"
- android:textColor="?android:textColorPrimary"
- android:textSize="18sp" />
+ android:layout_marginStart="45dp"
+ android:layout_marginEnd="36dp"
+ android:textSize="13sp" />
</LinearLayout>
<!-- UltraPrivacy. -->
<LinearLayout
+ android:id="@+id/ultraprivacy_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal" >
+ android:orientation="vertical"
+ android:padding="12dp" >
- <ImageView
- android:id="@+id/ultraprivacy_imageview"
+ <TextView
android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginTop="1dp"
- android:layout_marginEnd="10dp"
- android:layout_gravity="center_vertical"
- android:src="@drawable/block_tracking_enabled"
- app:tint="@color/blue_icon_selector"
- tools:ignore="contentDescription" />
-
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/ultraprivacy_switch"
+ android:layout_width="match_parent"
+ android:text="@string/ultraprivacy" />
+
+ <LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_marginStart="8dp"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"
- android:text="@string/ultraprivacy"
- android:textColor="?android:textColorPrimary"
- android:textSize="18sp" />
- </LinearLayout>
+ android:orientation="horizontal" >
- <!-- Block All Third Party Requests. -->
- <LinearLayout
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:orientation="horizontal" >
+ <ImageView
+ android:id="@+id/ultraprivacy_imageview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginTop="1dp"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/block_tracking_enabled"
+ app:tint="@color/blue_icon_selector"
+ android:contentDescription="@string/ultraprivacy" />
- <ImageView
- android:id="@+id/block_all_third_party_requests_imageview"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginTop="1dp"
- android:layout_marginEnd="10dp"
- android:layout_gravity="center_vertical"
- android:src="@drawable/block_all_third_party_requests_enabled"
- app:tint="@color/blue_icon_selector"
- tools:ignore="contentDescription" />
-
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/block_all_third_party_requests_switch"
+ <Spinner
+ android:id="@+id/ultraprivacy_spinner"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/ultraprivacy_textview"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_marginStart="8dp"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"
- android:text="@string/block_all_third_party_requests"
- android:textColor="?android:textColorPrimary"
- android:textSize="18sp" />
+ android:layout_marginStart="45dp"
+ android:layout_marginEnd="36dp"
+ android:textSize="13sp" />
</LinearLayout>
- <!-- User Agent. -->
+ <!-- Block All Third Party Requests. -->
<LinearLayout
+ android:id="@+id/block_all_third_party_requests_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp" >
+ android:padding="12dp" >
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/block_all_third_party_requests" />
<LinearLayout
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ImageView
+ android:id="@+id/block_all_third_party_requests_imageview"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginTop="1dp"
android:layout_marginEnd="10dp"
android:layout_gravity="center_vertical"
- android:src="@drawable/user_agent"
- app:tint="@color/blue_icon"
- android:contentDescription="@string/user_agent" />
+ android:src="@drawable/block_all_third_party_requests_enabled"
+ app:tint="@color/blue_icon_selector"
+ android:contentDescription="@string/block_all_third_party_requests" />
<Spinner
- android:id="@+id/user_agent_spinner"
+ android:id="@+id/block_all_third_party_requests_spinner"
android:layout_height="wrap_content"
android:layout_width="match_parent" />
</LinearLayout>
<TextView
- android:id="@+id/user_agent_textview"
+ android:id="@+id/block_all_third_party_requests_textview"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginStart="45dp"
android:layout_marginEnd="36dp"
android:textSize="13sp" />
-
- <EditText
- android:id="@+id/custom_user_agent_edittext"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_marginStart="40dp"
- android:layout_marginEnd="60dp"
- android:inputType="textUri"
- android:hint="@string/custom_user_agent"
- android:importantForAutofill="no" />
</LinearLayout>
- <!-- X-Requested-With Header. -->
+ <!-- User Agent. -->
<LinearLayout
+ android:id="@+id/user_agent_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp" >
+ android:padding="12dp" >
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/user_agent" />
<LinearLayout
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ImageView
- android:id="@+id/x_requested_with_header_imageview"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginTop="1dp"
android:layout_marginEnd="10dp"
android:layout_gravity="center_vertical"
- android:src="@drawable/x_requested_with_header_enabled"
- app:tint="@color/blue_icon_selector"
- android:contentDescription="@string/x_requested_with_header" />
+ android:src="@drawable/user_agent"
+ app:tint="@color/blue_icon"
+ android:contentDescription="@string/user_agent" />
<Spinner
- android:id="@+id/x_requested_with_header_spinner"
+ android:id="@+id/user_agent_spinner"
android:layout_height="wrap_content"
android:layout_width="match_parent" />
</LinearLayout>
<TextView
- android:id="@+id/x_requested_with_header_textview"
+ android:id="@+id/user_agent_textview"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginStart="45dp"
android:layout_marginEnd="36dp"
android:textSize="13sp" />
+
+ <EditText
+ android:id="@+id/custom_user_agent_edittext"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_marginStart="40dp"
+ android:layout_marginEnd="60dp"
+ android:inputType="textUri"
+ android:hint="@string/custom_user_agent"
+ android:importantForAutofill="no" />
</LinearLayout>
<!-- Font Size. -->
<LinearLayout
+ android:id="@+id/font_size_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp" >
+ android:padding="12dp" >
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/font_size" />
<LinearLayout
android:layout_height="wrap_content"
<!-- Swipe to Refresh. -->
<LinearLayout
+ android:id="@+id/swipe_to_refresh_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp" >
+ android:padding="12dp" >
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/swipe_to_refresh"
+ tools:ignore="TooManyViews" />
<LinearLayout
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp" >
+ android:padding="12dp" >
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/webview_theme" />
<LinearLayout
android:layout_height="wrap_content"
<!-- Wide Viewport. -->
<LinearLayout
+ android:id="@+id/wide_viewport_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp" >
+ android:padding="12dp" >
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/wide_viewport" />
<LinearLayout
android:layout_height="wrap_content"
<!-- Display Images. -->
<LinearLayout
+ android:id="@+id/display_images_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp" >
+ android:padding="12dp" >
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/display_images" />
<LinearLayout
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ImageView
- android:id="@+id/display_webpage_images_imageview"
+ android:id="@+id/display_images_imageview"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginTop="1dp"
android:contentDescription="@string/display_webpage_images" />
<Spinner
- android:id="@+id/display_webpage_images_spinner"
+ android:id="@+id/display_images_spinner"
android:layout_height="wrap_content"
android:layout_width="match_parent" />
</LinearLayout>
<TextView
- android:id="@+id/display_webpage_images_textview"
+ android:id="@+id/display_images_textview"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginStart="45dp"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_marginTop="18dp"
- android:layout_marginBottom="18dp" >
+ android:layout_marginBottom="18dp"
+ android:layout_marginStart="12dp"
+ android:layout_marginEnd="12dp" >
<!-- Switch -->
<LinearLayout
android:layout_marginTop="1dp"
android:layout_marginEnd="10dp"
android:layout_gravity="center_vertical"
- android:src="@drawable/ssl_certificate_enabled"
+ android:src="@drawable/ssl_certificate"
app:tint="@color/blue_icon_selector"
tools:ignore="contentDescription" />
android:layout_marginStart="8dp"
android:text="@string/pinned_ssl_certificate"
android:textColor="?android:textColorPrimary"
- android:textSize="18sp"
- tools:ignore="TooManyViews" />
+ android:textSize="18sp" />
</LinearLayout>
<!-- Saved Certificate -->
android:textSize="17sp"
android:textAllCaps="true"
android:textStyle="bold"
- android:textColor="?android:textColorPrimary" />
+ android:textColor="?android:textColorPrimary"
+ tools:ignore="TooManyViews" />
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_marginTop="18dp"
- android:layout_marginBottom="18dp" >
+ android:layout_marginBottom="18dp"
+ android:layout_marginStart="12dp"
+ android:layout_marginEnd="12dp" >
<!-- Switch -->
<LinearLayout
android:layout_marginTop="1dp"
android:layout_marginEnd="10dp"
android:layout_gravity="center_vertical"
- android:src="@drawable/ssl_certificate_enabled"
+ android:src="@drawable/ssl_certificate"
app:tint="@color/blue_icon_selector"
tools:ignore="contentDescription" />
</androidx.cardview.widget.CardView>
</LinearLayout>
</LinearLayout>
-</ScrollView>
\ No newline at end of file
+</ScrollView>