diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/start.xml | 50 | ||||
-rw-r--r-- | res/menu/start.xml | 6 | ||||
-rw-r--r-- | res/values/strings.xml | 8 |
3 files changed, 54 insertions, 10 deletions
diff --git a/res/layout/start.xml b/res/layout/start.xml index fc6335d..d0f7d30 100644 --- a/res/layout/start.xml +++ b/res/layout/start.xml @@ -8,9 +8,55 @@ android:paddingTop="@dimen/activity_vertical_margin" tools:context=".Start" > - <TextView + <RadioGroup + android:id="@+id/protocol" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/hello_world" /> + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:orientation="horizontal" > + + <RadioButton + android:id="@+id/tcp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:checked="true" + android:text="@string/tcp" /> + + <RadioButton + android:id="@+id/ssl" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/ssl" /> + + </RadioGroup> + + <EditText + android:id="@+id/uri" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_below="@+id/protocol" + android:ems="10" + android:hint="@string/uri" + android:inputType="textUri" /> + + <EditText + android:id="@+id/port" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_below="@+id/uri" + android:ems="10" + android:hint="@string/port" + android:inputType="number" /> + + <Button + android:id="@+id/connectbutton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_below="@+id/port" + android:text="@string/connect" /> </RelativeLayout>
\ No newline at end of file diff --git a/res/menu/start.xml b/res/menu/start.xml index e6dd2f2..9a14074 100644 --- a/res/menu/start.xml +++ b/res/menu/start.xml @@ -1,8 +1,2 @@ <menu xmlns:android="http://schemas.android.com/apk/res/android" > - - <item - android:id="@+id/action_settings" - android:orderInCategory="100" - android:title="@string/action_settings"/> - </menu>
\ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 08091d3..2c832b0 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2,7 +2,11 @@ <resources> <string name="app_name">Text Transport</string> - <string name="action_settings">Settings</string> - <string name="hello_world">Running!</string> + <string name="connect">Connect</string> + <string name="disconnect">Disconnect</string> + <string name="uri">Server URI</string> + <string name="tcp">TCP</string> + <string name="ssl">SSL</string> + <string name="port">Port</string> </resources>
\ No newline at end of file |