<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright 2017 Soren Stoutner <soren@stoutner.com>.
+ Copyright © 2017 Soren Stoutner <soren@stoutner.com>.
This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal" >
-
- <ImageView
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginBottom="26dp"
- android:layout_gravity="bottom"
- android:src="@drawable/domains"
- android:tint="@color/blue_800"
- tools:ignore="contentDescription" />
+ android:orientation="vertical" >
- <!-- `android.support.design.widget.TextInputLayout` makes the `android:hint` float above the `EditText`. -->
- <android.support.design.widget.TextInputLayout
+ <LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:layout_marginStart="6dp"
- android:layout_marginBottom="14dp" >
+ android:orientation="horizontal" >
- <!-- `android:inputType="textUri"` disables spell check in the `EditText`. -->
- <android.support.design.widget.TextInputEditText
- android:id="@+id/domain_settings_name_edittext"
- android:layout_width="match_parent"
+ <ImageView
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginEnd="10dp"
+ android:layout_marginBottom="12dp"
+ android:layout_gravity="bottom"
+ android:src="@drawable/domains"
+ android:tint="@color/blue_800"
+ tools:ignore="contentDescription" />
+
+ <!-- `android.support.design.widget.TextInputLayout` makes the `android:hint` float above the `EditText`. -->
+ <android.support.design.widget.TextInputLayout
android:layout_height="wrap_content"
- android:hint="@string/domain_name"
- android:inputType="textUri" />
- </android.support.design.widget.TextInputLayout>
+ android:layout_width="match_parent"
+ android:layout_marginStart="6dp" >
+
+ <!-- `android:inputType="textUri"` disables spell check in the `EditText`. -->
+ <android.support.design.widget.TextInputEditText
+ android:id="@+id/domain_settings_name_edittext"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="@string/domain_name"
+ android:inputType="textUri" />
+ </android.support.design.widget.TextInputLayout>
+ </LinearLayout>
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/domain_name_instructions"
+ android:textSize="12sp"
+ android:layout_marginStart="43dp"
+ android:layout_marginBottom="14dp" />
</LinearLayout>
<!-- JavaScript. -->
android:orientation="horizontal" >
<ImageView
+ android:id="@+id/domain_settings_javascript_imageview"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
+ android:layout_marginEnd="10dp"
android:layout_gravity="center_vertical"
- android:src="@drawable/privacy_mode"
tools:ignore="contentDescription" />
<Switch
android:orientation="horizontal" >
<ImageView
+ android:id="@+id/domain_settings_first_party_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"
- android:tint="@color/blue_800"
tools:ignore="contentDescription" />
<Switch
<!-- Third-Party Cookies. -->
<LinearLayout
+ android:id="@+id/domain_settings_third_party_cookies_linearlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="horizontal" >
<ImageView
+ android:id="@+id/domain_settings_third_party_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"
- android:tint="@color/blue_800"
tools:ignore="contentDescription" />
<Switch
android:orientation="horizontal" >
<ImageView
+ android:id="@+id/domain_settings_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"
- android:tint="@color/blue_800"
tools:ignore="contentDescription" />
<Switch
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal">
+ android:orientation="horizontal" >
<ImageView
+ android:id="@+id/domain_settings_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"
- android:tint="@color/blue_800"
tools:ignore="contentDescription" />
<Switch
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal">
+ android:orientation="vertical"
+ android:layout_marginTop="14dp"
+ android:layout_marginBottom="14dp" >
+
+ <LinearLayout
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:orientation="horizontal" >
+
+ <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_light"
+ android:contentDescription="@string/user_agent" />
+
+ <Spinner
+ android:id="@+id/domain_settings_user_agent_spinner"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:labelFor="@+id/domain_settings_custom_user_agent_edittext" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/domain_settings_user_agent_textview"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent"
+ android:layout_marginStart="43dp"
+ android:layout_marginEnd="36dp"
+ android:textSize="13sp" />
+
+ <EditText
+ android:id="@id/domain_settings_custom_user_agent_edittext"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_marginStart="38dp"
+ android:layout_marginEnd="60dp"
+ android:inputType="textUri" />
+ </LinearLayout>
+
+ <!-- Font Size. -->
+ <LinearLayout
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:orientation="horizontal" >
<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"
- android:tint="@color/blue_800"
- android:contentDescription="@string/user_agent" />
+ android:src="@drawable/font_size_light"
+ android:contentDescription="@string/font_size" />
<Spinner
- android:id="@+id/domain_settings_user_agent_spinner"
+ android:id="@+id/domain_settings_font_size_spinner"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginTop="14dp"
android:layout_marginBottom="14dp" />
</LinearLayout>
- <!-- Font Size. -->
- <!-- We need to add an extra `android:layout_marginBottom="14dp"` to the last `LinearLayout` or the bottom of the `ScrollView` gets cutoff if API 25. -->
+ <!-- Display Images. -->
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal"
- android:layout_marginBottom="14dp" >
+ android:orientation="horizontal" >
<ImageView
+ android:id="@+id/domain_settings_display_webpage_images_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/font_size"
- android:tint="@color/blue_800"
- android:contentDescription="@string/font_size" />
+ android:contentDescription="@string/display_webpage_images" />
<Spinner
- android:id="@+id/domain_settings_font_size_spinner"
+ android:id="@+id/domain_settings_display_webpage_images_spinner"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"/>
+ android:layout_marginBottom="14dp" />
</LinearLayout>
</LinearLayout>
</ScrollView>
\ No newline at end of file