|
|
@@ -1,65 +1,78 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
|
|
tools:context=".MainActivity">
|
|
|
|
|
|
- <TableLayout
|
|
|
+ <androidx.gridlayout.widget.GridLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
-
|
|
|
- <TableRow
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/textView"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="TextView" />
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/input_port"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:ems="10"
|
|
|
- android:inputType="numberSigned" />
|
|
|
-
|
|
|
- </TableRow>
|
|
|
-
|
|
|
- <TableRow
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/bt_saveconfiguration"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:enabled="false"
|
|
|
- android:text="Save" />
|
|
|
- </TableRow>
|
|
|
-
|
|
|
- <TableRow
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ app:columnCount="2"
|
|
|
+ app:rowCount="5">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textView"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/port"
|
|
|
+ app:layout_gravity="fill_horizontal"
|
|
|
+ app:layout_column="0"
|
|
|
+ app:layout_row="0" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/input_port"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:ems="5"
|
|
|
+ android:inputType="numberSigned"
|
|
|
+ app:layout_column="1"
|
|
|
+ app:layout_row="0" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.SwitchCompat
|
|
|
+ android:id="@+id/input_startonboot"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/startonboot"
|
|
|
+ app:layout_column="0"
|
|
|
+ app:layout_columnSpan="2"
|
|
|
+ app:layout_row="1" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/bt_saveconfiguration"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:enabled="false"
|
|
|
+ android:text="@string/save"
|
|
|
+ app:layout_gravity="fill_horizontal"
|
|
|
+ app:layout_column="1"
|
|
|
+ app:layout_row="2" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_column="0"
|
|
|
+ app:layout_columnSpan="2"
|
|
|
+ app:layout_row="3">
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
android:text="@string/service_is" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/txt_servicestate"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1" />
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <Space
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1" />
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_column="0"
|
|
|
+ app:layout_columnSpan="2"
|
|
|
+ app:layout_row="4">
|
|
|
|
|
|
<Button
|
|
|
android:id="@+id/bt_killservice"
|
|
|
@@ -76,17 +89,7 @@
|
|
|
android:layout_weight="1"
|
|
|
android:enabled="false"
|
|
|
android:text="@string/start" />
|
|
|
+ </LinearLayout>
|
|
|
+ </androidx.gridlayout.widget.GridLayout>
|
|
|
|
|
|
- </TableRow>
|
|
|
-
|
|
|
- </TableLayout>
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:orientation="vertical"
|
|
|
- tools:layout_editor_absoluteX="36dp"
|
|
|
- tools:layout_editor_absoluteY="106dp">
|
|
|
-
|
|
|
- </LinearLayout>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|