75 lines
2.6 KiB
XML
75 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/titleView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/title_main"
|
|
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
|
|
|
|
<TextView
|
|
android:id="@+id/subtitleView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/subtitle_main"
|
|
android:textAppearance="?attr/textAppearanceBodyMedium" />
|
|
|
|
<TextView
|
|
android:id="@+id/statusView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/status_idle"
|
|
android:textAppearance="?attr/textAppearanceBodyLarge" />
|
|
|
|
<EditText
|
|
android:id="@+id/configEditor"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="320dp"
|
|
android:layout_marginTop="16dp"
|
|
android:gravity="top|start"
|
|
android:hint="@string/config_hint"
|
|
android:inputType="textMultiLine|textNoSuggestions"
|
|
android:fontFamily="monospace"
|
|
android:padding="12dp"
|
|
android:scrollbars="vertical" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/startButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/start_proxy" />
|
|
|
|
<Space
|
|
android:layout_width="12dp"
|
|
android:layout_height="1dp" />
|
|
|
|
<Button
|
|
android:id="@+id/stopButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/stop_proxy" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|