fedilab-Android-App/app/src/main/res/layout/activity_proxy.xml

77 lines
2.6 KiB
XML
Raw Normal View History

2018-01-19 18:20:31 +01:00
<?xml version="1.0" encoding="utf-8"?>
2019-09-06 17:55:14 +02:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-01-19 18:20:31 +01:00
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:fitsSystemWindows="true"
android:orientation="vertical"
tools:context="app.fedilab.android.activities.ProxyActivity">
2018-01-19 18:20:31 +01:00
2018-01-20 09:46:28 +01:00
<LinearLayout
2018-01-19 18:20:31 +01:00
android:layout_width="match_parent"
2018-01-20 09:46:28 +01:00
android:layout_height="wrap_content"
android:orientation="horizontal">
2019-09-06 17:55:14 +02:00
2018-01-20 09:46:28 +01:00
<CheckBox
android:id="@+id/enable_proxy"
android:layout_width="0dp"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
2018-01-20 09:46:28 +01:00
android:layout_weight="1"
2019-11-15 16:32:25 +01:00
android:checked="false"
android:text="@string/proxy_enable" />
2019-09-06 17:55:14 +02:00
2018-01-20 09:46:28 +01:00
<Spinner
android:id="@+id/type"
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:inputType="number" />
2018-01-20 09:46:28 +01:00
</LinearLayout>
2019-09-06 17:55:14 +02:00
2018-01-19 18:20:31 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2019-09-06 17:55:14 +02:00
2018-01-19 18:20:31 +01:00
<EditText
android:id="@+id/host"
android:layout_width="0dp"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
2018-01-19 18:20:31 +01:00
android:layout_weight="3"
2019-11-15 16:32:25 +01:00
android:hint="@string/poxy_host"
android:inputType="textUri" />
2019-09-06 17:55:14 +02:00
2018-01-19 18:20:31 +01:00
<EditText
android:id="@+id/port"
android:layout_width="0dp"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
2018-01-19 18:20:31 +01:00
android:layout_weight="1"
2019-11-15 16:32:25 +01:00
android:hint="@string/poxy_port"
android:inputType="number" />
2018-01-19 18:20:31 +01:00
</LinearLayout>
2019-09-06 17:55:14 +02:00
2018-01-19 18:20:31 +01:00
<EditText
android:id="@+id/proxy_login"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:hint="@string/poxy_login" />
2019-09-06 17:55:14 +02:00
2018-01-19 18:20:31 +01:00
<EditText
android:id="@+id/proxy_password"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:hint="@string/poxy_password"
android:inputType="textPassword" />
2019-09-06 17:55:14 +02:00
2018-01-20 09:46:28 +01:00
<Button
android:id="@+id/set_proxy_save"
2019-11-15 16:32:25 +01:00
style="@style/Base.Widget.AppCompat.Button.Colored"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-01-20 09:46:28 +01:00
android:layout_gravity="center"
2019-11-15 16:32:25 +01:00
android:layout_marginTop="5dp"
2018-01-20 09:46:28 +01:00
android:gravity="center"
android:maxWidth="150dp"
2019-11-15 16:32:25 +01:00
android:text="@string/set_save_changes" />
2018-01-19 18:20:31 +01:00
</LinearLayout>