1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2025-12-09 05:41:12 +01:00

Added option to set manual proxy

This commit is contained in:
vanitasvitae 2016-06-09 01:03:50 +02:00
parent b5cf37108e
commit 61c92349aa
5 changed files with 204 additions and 2 deletions

View file

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- Inner layout for margin -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_margin="@dimen/activity_horizontal_margin">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/lay_toggle">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:text="@string/proxy_enabled" />
<android.support.v7.widget.SwitchCompat
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/proxy_toggle"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"/>
</RelativeLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/proxy_host"
android:id="@+id/text_host"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/proxy_host_edit"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/proxy_port"
android:id="@+id/text_port"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:id="@+id/proxy_port_edit"/>
</LinearLayout>
</LinearLayout>

View file

@ -78,6 +78,10 @@
<string name="settings_images_switch_on">Do load images</string>
<string name="settings_images_switch_off">Do not load images</string>
<string name="settings_view">Change view</string>
<string name="settings_proxy">Proxy</string>
<string name="proxy_enabled">Enabled</string>
<string name="proxy_host">Host</string>
<string name="proxy_port">Port</string>
<string name="share_link">Share link as text</string>
<string name="share_screenshot">Share screenshot of webpage</string>
<string name="take_screenshot">Take screenshot of webpage</string>
@ -218,4 +222,6 @@
<string name="prefix_https" translatable="false">https://</string>
<string name="share_dotdodot">Share…</string>
<string name="app_hashtag" translatable="false">#DiasporaForAndroid</string>
<string name="toast_set_proxy_failed">Warning: Could not set network proxy…</string>
</resources>