From f78eeced2a24d869e514330467395b0471fb2adc Mon Sep 17 00:00:00 2001 From: cyBerta Date: Wed, 24 Nov 2021 23:53:08 +0100 Subject: improve settings list entry layouts --- .../res/layout-xlarge/v_icon_text_list_item.xml | 106 ++++++++-------- .../main/res/layout-xlarge/v_switch_list_item.xml | 138 ++++++++++---------- app/src/main/res/layout/v_icon_text_list_item.xml | 105 ++++++++-------- app/src/main/res/layout/v_switch_list_item.xml | 140 +++++++++++---------- app/src/main/res/values/attrs.xml | 3 + 5 files changed, 256 insertions(+), 236 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout-xlarge/v_icon_text_list_item.xml b/app/src/main/res/layout-xlarge/v_icon_text_list_item.xml index b39540a6..530660af 100644 --- a/app/src/main/res/layout-xlarge/v_icon_text_list_item.xml +++ b/app/src/main/res/layout-xlarge/v_icon_text_list_item.xml @@ -1,63 +1,67 @@ - - - - - + android:orientation="horizontal"> + + + - + + + - + diff --git a/app/src/main/res/layout-xlarge/v_switch_list_item.xml b/app/src/main/res/layout-xlarge/v_switch_list_item.xml index f4c3e892..a24f5089 100644 --- a/app/src/main/res/layout-xlarge/v_switch_list_item.xml +++ b/app/src/main/res/layout-xlarge/v_switch_list_item.xml @@ -1,84 +1,88 @@ - + + + - + + - - + + + - - - - - - - + android:visibility="visible" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + tools:text="" /> + - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/layout/v_icon_text_list_item.xml b/app/src/main/res/layout/v_icon_text_list_item.xml index 06b70a2e..d183864d 100644 --- a/app/src/main/res/layout/v_icon_text_list_item.xml +++ b/app/src/main/res/layout/v_icon_text_list_item.xml @@ -1,62 +1,67 @@ - - - - + android:orientation="horizontal"> + + + - + + + - + diff --git a/app/src/main/res/layout/v_switch_list_item.xml b/app/src/main/res/layout/v_switch_list_item.xml index 5bd4de1b..3ba37b81 100644 --- a/app/src/main/res/layout/v_switch_list_item.xml +++ b/app/src/main/res/layout/v_switch_list_item.xml @@ -1,85 +1,89 @@ - + - - - - + android:orientation="horizontal" + android:layout_toStartOf="@+id/option_switch" + android:layout_toLeftOf="@+id/option_switch" + > + - + + + + + + - - - - - + android:textAppearance="?android:attr/textAppearanceListItemSmall" + android:visibility="visible" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + tools:text="" /> + - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index d3a88b81..5631e3f3 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -8,15 +8,18 @@ + + + \ No newline at end of file -- cgit v1.2.3 From 6fb2050aaf6e992bf96d41c5f6b19f5c1a3771c3 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 25 Nov 2021 01:54:18 +0100 Subject: implement separate settings fragment --- app/src/main/res/drawable-hdpi/ic_cog.png | Bin 0 -> 1487 bytes app/src/main/res/drawable-hdpi/ic_snowflake.png | Bin 0 -> 1706 bytes app/src/main/res/drawable-ldpi/ic_cog.png | Bin 0 -> 851 bytes app/src/main/res/drawable-ldpi/ic_snowflake.png | Bin 0 -> 974 bytes app/src/main/res/drawable-mdpi/ic_cog.png | Bin 0 -> 1075 bytes app/src/main/res/drawable-mdpi/ic_snowflake.png | Bin 0 -> 1241 bytes app/src/main/res/drawable-xhdpi/ic_cog.png | Bin 0 -> 1981 bytes app/src/main/res/drawable-xhdpi/ic_snowflake.png | Bin 0 -> 2233 bytes app/src/main/res/drawable-xxhdpi/ic_cog.png | Bin 0 -> 2797 bytes app/src/main/res/drawable-xxhdpi/ic_snowflake.png | Bin 0 -> 3083 bytes app/src/main/res/drawable-xxxhdpi/ic_cog.png | Bin 0 -> 3962 bytes app/src/main/res/drawable-xxxhdpi/ic_snowflake.png | Bin 0 -> 3920 bytes app/src/main/res/layout/f_drawer_main.xml | 73 ++------------ app/src/main/res/layout/f_settings.xml | 105 +++++++++++++++++++++ app/src/main/res/values/strings.xml | 5 + 15 files changed, 117 insertions(+), 66 deletions(-) create mode 100644 app/src/main/res/drawable-hdpi/ic_cog.png create mode 100644 app/src/main/res/drawable-hdpi/ic_snowflake.png create mode 100644 app/src/main/res/drawable-ldpi/ic_cog.png create mode 100644 app/src/main/res/drawable-ldpi/ic_snowflake.png create mode 100644 app/src/main/res/drawable-mdpi/ic_cog.png create mode 100644 app/src/main/res/drawable-mdpi/ic_snowflake.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_cog.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_snowflake.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_cog.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_snowflake.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_cog.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_snowflake.png create mode 100644 app/src/main/res/layout/f_settings.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable-hdpi/ic_cog.png b/app/src/main/res/drawable-hdpi/ic_cog.png new file mode 100644 index 00000000..24144015 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_cog.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_snowflake.png b/app/src/main/res/drawable-hdpi/ic_snowflake.png new file mode 100644 index 00000000..2ff8a623 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_snowflake.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_cog.png b/app/src/main/res/drawable-ldpi/ic_cog.png new file mode 100644 index 00000000..bbefe9dc Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_cog.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_snowflake.png b/app/src/main/res/drawable-ldpi/ic_snowflake.png new file mode 100644 index 00000000..eee0f0ab Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_snowflake.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_cog.png b/app/src/main/res/drawable-mdpi/ic_cog.png new file mode 100644 index 00000000..32022e2d Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_cog.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_snowflake.png b/app/src/main/res/drawable-mdpi/ic_snowflake.png new file mode 100644 index 00000000..6047bc1c Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_snowflake.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_cog.png b/app/src/main/res/drawable-xhdpi/ic_cog.png new file mode 100644 index 00000000..43d6e8f6 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_cog.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_snowflake.png b/app/src/main/res/drawable-xhdpi/ic_snowflake.png new file mode 100644 index 00000000..f71509c4 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_snowflake.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_cog.png b/app/src/main/res/drawable-xxhdpi/ic_cog.png new file mode 100644 index 00000000..947874ed Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_cog.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_snowflake.png b/app/src/main/res/drawable-xxhdpi/ic_snowflake.png new file mode 100644 index 00000000..8fb1b339 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_snowflake.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_cog.png b/app/src/main/res/drawable-xxxhdpi/ic_cog.png new file mode 100644 index 00000000..60f92966 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_cog.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_snowflake.png b/app/src/main/res/drawable-xxxhdpi/ic_snowflake.png new file mode 100644 index 00000000..577f675c Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_snowflake.png differ diff --git a/app/src/main/res/layout/f_drawer_main.xml b/app/src/main/res/layout/f_drawer_main.xml index 65179857..bd7e66ae 100644 --- a/app/src/main/res/layout/f_drawer_main.xml +++ b/app/src/main/res/layout/f_drawer_main.xml @@ -50,13 +50,12 @@ app:text="@string/switch_provider_menu_option" app:icon="@drawable/ic_switch_provider_36" android:visibility="gone" + tools:visibility="visible" /> @@ -69,35 +68,6 @@ app:icon="@drawable/ic_battery_36" /> - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9d62cc3b..c49a456e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -112,6 +112,7 @@ Requires root permissions Show experimental features Hide experimental features + Experimental features Please make sure to enable tethering in the system settings]]> first. Share your VPN with other devices via: Wi-Fi hotspot @@ -183,5 +184,9 @@ Retry unobfuscated Hide connection details %s has no internet connection. Please check your WiFi and cellular data settings. + Censorship circumvention + Use Snowflake + Circumvent blocking of the provider\'s configuration server. + VPN settings -- cgit v1.2.3