mirror of
http://galexander.org/git/simplesshd.git
synced 2024-11-30 19:28:10 +00:00
85 lines
3.2 KiB
XML
85 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:orientation="vertical"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent">
|
|
<ScrollView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_weight="1">
|
|
<RelativeLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content">
|
|
<TextView android:id="@+id/onboot_lab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="fill_parent"
|
|
android:layout_alignParentTop="@+id/onboot"
|
|
android:layout_alignBottom="@+id/onboot"
|
|
android:gravity="center_vertical"
|
|
android:text="Start on boot"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
<CheckBox android:id="@+id/onboot"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentRight="true" />
|
|
<TextView android:id="@+id/port_lab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/onboot"
|
|
android:text="Port"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
<EditText android:id="@+id/port"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/onboot"
|
|
android:layout_alignParentRight="true"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:singleLine="true"
|
|
android:inputType="numberDecimal" />
|
|
<TextView android:id="@+id/path_lab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/port"
|
|
android:text="Path to authorized_keys"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
<EditText android:id="@+id/path"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/path_lab"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:singleLine="true" />
|
|
<TextView android:id="@+id/shell_lab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/path"
|
|
android:text="Login shell"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
<EditText android:id="@+id/shell"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/shell_lab"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:singleLine="true" />
|
|
<TextView android:id="@+id/home_lab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/shell"
|
|
android:text="Home directory"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
<EditText android:id="@+id/home"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/home_lab"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:singleLine="true" />
|
|
</RelativeLayout>
|
|
</ScrollView>
|
|
<Button android:id="@+id/startstop"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Start"
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
android:onClick="startstop_clicked" />
|
|
</LinearLayout>
|