diff options
Diffstat (limited to 'app/src/main/res/layout/fragment_settings_privacy.xml')
-rw-r--r-- | app/src/main/res/layout/fragment_settings_privacy.xml | 378 |
1 files changed, 378 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_settings_privacy.xml b/app/src/main/res/layout/fragment_settings_privacy.xml new file mode 100644 index 000000000..f08d3d01c --- /dev/null +++ b/app/src/main/res/layout/fragment_settings_privacy.xml @@ -0,0 +1,378 @@ +<?xml version="1.0" encoding="utf-8"?> +<com.google.android.material.circularreveal.CircularRevealFrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <FrameLayout + android:id="@+id/container" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ScrollView + android:id="@+id/swipeContainer" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginStart="@dimen/fab_margin" + android:layout_marginLeft="@dimen/fab_margin" + android:layout_marginEnd="@dimen/fab_margin" + android:layout_marginRight="@dimen/fab_margin" + android:layout_marginBottom="20dp" + android:paddingLeft="@dimen/drawer_padding" + android:paddingRight="@dimen/drawer_padding" + android:scrollbars="none" + tools:ignore="UselessParent"> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:orientation="vertical" + android:paddingLeft="@dimen/fab_margin" + android:paddingRight="@dimen/fab_margin" + tools:ignore="UselessParent"> + + + <!-- Privacy --> + <LinearLayout + android:id="@+id/settings_privacy" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/settings_option_margin" + android:layout_marginBottom="@dimen/settings_option_margin" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginEnd="10dp" + android:layout_weight="1" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/set_invidious" + android:textSize="16sp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/set_invidious_indication" + android:textColor="@color/mastodonC2" + android:textSize="12sp" /> + + </LinearLayout> + + <androidx.appcompat.widget.SwitchCompat + android:id="@+id/set_invidious" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <EditText + android:id="@+id/set_invidious_host" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="end" + android:hint="@string/set_invidious_host" + android:importantForAutofill="no" + android:inputType="textWebEditText" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/settings_option_margin" + android:layout_marginBottom="@dimen/settings_option_margin" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginEnd="10dp" + android:layout_weight="1" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/set_nitter" + android:textSize="16sp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/set_nitter_indication" + android:textColor="@color/mastodonC2" + android:textSize="12sp" /> + + </LinearLayout> + + <androidx.appcompat.widget.SwitchCompat + android:id="@+id/set_nitter" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <EditText + android:id="@+id/set_nitter_host" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="end" + android:hint="@string/set_nitter_host" + android:inputType="textWebEditText" /> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/settings_option_margin" + android:layout_marginBottom="@dimen/settings_option_margin" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginEnd="10dp" + android:layout_weight="1" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/set_bibliogram" + android:textSize="16sp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/set_bibliogram_indication" + android:textColor="@color/mastodonC2" + android:textSize="12sp" /> + + </LinearLayout> + + <androidx.appcompat.widget.SwitchCompat + android:id="@+id/set_bibliogram" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <EditText + android:id="@+id/set_bibliogram_host" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="end" + android:hint="@string/set_bibliogram_host" + android:inputType="textWebEditText" /> + + <!-- utm parameters --> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/settings_option_margin" + android:layout_marginBottom="@dimen/settings_option_margin" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginEnd="10dp" + android:layout_weight="1" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/set_utm_parameters" + android:textSize="16sp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/set_utm_parameters_indication" + android:textColor="@color/mastodonC2" + android:textSize="12sp" /> + + </LinearLayout> + + <androidx.appcompat.widget.SwitchCompat + android:id="@+id/set_utm_parameters" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <!-- user agent --> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/settings_option_margin" + android:layout_marginBottom="@dimen/settings_option_margin" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:labelFor="@+id/set_user_agent" + android:text="@string/set_user_agent" + android:textSize="16sp" /> + + <EditText + android:id="@+id/set_user_agent" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="end" + android:hint="@string/set_user_agent_hint" + android:inputType="textMultiLine" + android:lines="2" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/set_user_agent_indication" + android:textColor="@color/mastodonC2" /> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/settings_option_margin" + android:layout_marginBottom="@dimen/settings_option_margin" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <TextView + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginEnd="10dp" + android:layout_weight="1" + android:text="@string/embedded_browser" + android:textSize="16sp" /> + + <androidx.appcompat.widget.SwitchCompat + android:id="@+id/set_embedded_browser" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <Button + android:id="@+id/update_tracking_domains" + style="@style/colored_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:gravity="center" + android:text="@string/update_tracking_domains" + android:textSize="16sp" /> + + <LinearLayout + android:id="@+id/custom_tabs_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/settings_option_margin" + android:layout_marginBottom="@dimen/settings_option_margin" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginEnd="10dp" + android:layout_weight="1" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/custom_tabs" + android:textSize="16sp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/set_custom_tabs_indication" + android:textColor="@color/mastodonC2" + android:textSize="12sp" /> + </LinearLayout> + + <androidx.appcompat.widget.SwitchCompat + android:id="@+id/set_custom_tabs" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <LinearLayout + android:id="@+id/set_javascript_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:orientation="vertical" + android:visibility="gone"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="@string/use_javascript" + android:textSize="16sp" /> + + <androidx.appcompat.widget.SwitchCompat + android:id="@+id/set_javascript" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_margin="10dp" + android:gravity="center" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/set_cookies_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="@string/use_cookies" + android:textSize="16sp" /> + + <androidx.appcompat.widget.SwitchCompat + android:id="@+id/set_cookies" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_margin="10dp" + android:gravity="center" /> + </LinearLayout> + </LinearLayout> + + </LinearLayout> + </LinearLayout> + </ScrollView> + + </FrameLayout> +</com.google.android.material.circularreveal.CircularRevealFrameLayout> |