218 lines
7.8 KiB
XML
218 lines
7.8 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"
|
|
tools:context=".ui.ServerActivity">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/layout_margin_top_height">
|
|
|
|
<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/layout_margin_top_height"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_lab_remarks" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_remarks"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/edit_height"
|
|
android:inputType="text" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/layout_margin_top_height"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_lab_address3" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_address"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/edit_height"
|
|
android:inputType="text" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/layout_margin_top_height"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_lab_port3" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_port"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/edit_height"
|
|
android:inputType="number" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/layout_margin_top_height"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_lab_id3" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_id"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/edit_height"
|
|
android:inputType="text" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/layout_margin_top_height"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_lab_security3" />
|
|
|
|
<Spinner
|
|
android:id="@+id/sp_security"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/edit_height"
|
|
android:entries="@array/ss_securitys" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/layout_margin_top_height"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_lab_more_function"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/layout_margin_top_height"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_lab_network" />
|
|
|
|
<Spinner
|
|
android:id="@+id/sp_network"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/edit_height"
|
|
android:entries="@array/networks" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/layout_margin_top_height"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/sp_header_type_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_lab_head_type" />
|
|
|
|
<Spinner
|
|
android:id="@+id/sp_header_type"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/edit_height" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/layout_margin_top_height"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_lab_request_host" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_request_host"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/edit_height"
|
|
android:inputType="text" />
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/layout_margin_top_height"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_lab_path" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_path"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/edit_height"
|
|
android:inputType="text" />
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/tls_layout" />
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/layout_margin_top_height"
|
|
android:layout_marginTop="@dimen/layout_margin_top_height"
|
|
android:orientation="vertical" />
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|