105 lines
3.6 KiB
XML
105 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:orientation="vertical"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:context=".SettingsActivity"
|
|
tools:showIn="@layout/activity_settings">
|
|
|
|
<TextView
|
|
android:id="@+id/textView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/tf_net" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/nsIpTv"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/settings_nsIp" />
|
|
|
|
<EditText
|
|
android:id="@+id/nsIpEditText"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:digits="0123456789."
|
|
android:ems="10"
|
|
android:hint="xxx.xxx.xxx.xxx"
|
|
android:inputType="number" />
|
|
</LinearLayout>
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/autoDetectIpSW"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_autodtct_phn_ip" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/servAddrTv"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/settings_phone_ip" />
|
|
|
|
<EditText
|
|
android:id="@+id/servAddrTextEdit"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:digits="0123456789."
|
|
android:ems="10"
|
|
android:hint="xxx.xxx.xxx.xxx"
|
|
android:inputType="number" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/servPortTv"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/settings_phone_port" />
|
|
|
|
<EditText
|
|
android:id="@+id/servPortTextEdit"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:digits="0123456789"
|
|
android:ems="10"
|
|
android:hint="1024-65535"
|
|
android:inputType="number" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |