diff options
author | Nathan Lasseter <nathan@4574.co.uk> | 2013-05-22 17:23:10 +0100 |
---|---|---|
committer | Nathan Lasseter <nathan@4574.co.uk> | 2013-05-22 17:23:10 +0100 |
commit | 5d14f1cc96a7ac749cdcba72a14d5f2825df37a9 (patch) | |
tree | 8127f94cf3d0bc79f937f64ba991f1f50f974049 /res/layout | |
parent | cc8ace92f17c8e5aef7d68ff316e5cd038cd36b5 (diff) |
Moved MqttCallback to new class. Added text boxes & connect/disconnect button.
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/start.xml | 50 |
1 files changed, 48 insertions, 2 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 |