You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simplesshd/res/layout/main.xml

83 lines
3.2 KiB

<?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="wrap_content"
android:layout_alignParentTop="true"
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_lab"
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/port_lab"
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="starstop_clicked" />
</LinearLayout>