190 lines
7.3 KiB
XML
190 lines
7.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView 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"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:fitsSystemWindows="true"
|
|
tools:context=".ui.SubSettingActivity">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/margin_spacing_dp16">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/title_server"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_spacing_dp16"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/sub_setting_remarks" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_remarks"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/view_height_dp48"
|
|
android:inputType="text" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_spacing_dp16"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/sub_setting_url" />
|
|
|
|
|
|
<EditText
|
|
android:id="@+id/et_url"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="top"
|
|
android:inputType="textMultiLine"
|
|
android:maxLines="10"
|
|
android:minLines="2"
|
|
android:scrollbars="vertical"
|
|
tools:ignore="TextFields" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_spacing_dp16"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/sub_setting_filter" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_filter"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/view_height_dp48"
|
|
android:inputType="text" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_spacing_dp16"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1.0"
|
|
android:text="@string/sub_setting_enable" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/chk_enable"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/padding_spacing_dp16"
|
|
android:paddingEnd="@dimen/padding_spacing_dp16"
|
|
app:theme="@style/BrandedSwitch" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_spacing_dp16"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1.0"
|
|
android:text="@string/sub_auto_update" />
|
|
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/auto_update_check"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/padding_spacing_dp16"
|
|
android:paddingEnd="@dimen/padding_spacing_dp16"
|
|
app:theme="@style/BrandedSwitch" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_spacing_dp16"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/sub_setting_pre_profile" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_pre_profile"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/view_height_dp48"
|
|
android:hint="@string/sub_setting_pre_profile_tip"
|
|
android:inputType="text" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_spacing_dp16"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/sub_setting_next_profile" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_next_profile"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/view_height_dp48"
|
|
android:hint="@string/sub_setting_pre_profile_tip"
|
|
android:inputType="text" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_spacing_dp16"
|
|
android:layout_marginBottom="@dimen/margin_spacing_dp16"
|
|
android:orientation="vertical" />
|
|
|
|
</LinearLayout>
|
|
</ScrollView> |