summaryrefslogtreecommitdiff
path: root/remoteExample/src/main/res/layout/fragment_main.xml
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-02-13 16:33:39 +0100
committerArne Schwabe <arne@rfc2549.org>2014-02-13 16:33:39 +0100
commit1ec9eb737e465de3d215b903c4c91c75696c75ec (patch)
tree2722801a7d2da03ba6c6ec865be7820e3adaae90 /remoteExample/src/main/res/layout/fragment_main.xml
parentdfd5ef42cf6b68bd7ee7b522ac3c9a55cd54c889 (diff)
Implement demo to show OpenVPN for Android API
Diffstat (limited to 'remoteExample/src/main/res/layout/fragment_main.xml')
-rw-r--r--remoteExample/src/main/res/layout/fragment_main.xml62
1 files changed, 58 insertions, 4 deletions
diff --git a/remoteExample/src/main/res/layout/fragment_main.xml b/remoteExample/src/main/res/layout/fragment_main.xml
index fef7793f..5069780c 100644
--- a/remoteExample/src/main/res/layout/fragment_main.xml
+++ b/remoteExample/src/main/res/layout/fragment_main.xml
@@ -6,11 +6,65 @@
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
- tools:context="de.blinkt.openvpn.remote.MainActivity$PlaceholderFragment">
+ tools:context="de.blinkt.openvpn.remote.MainFragment">
+
+
+ <TextView
+ android:id="@+id/status"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignLeft="@+id/helloworld"
+ android:layout_alignParentTop="true"
+ android:text="No Status yet" />
+
+ <Button
+ android:id="@+id/startVPN"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignRight="@+id/helloworld"
+ android:layout_below="@+id/helloworld"
+ android:text="Not now"
+ android:visibility="visible" />
<TextView
- android:text="@string/hello_world"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
+ android:id="@+id/helloworld"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_centerVertical="true"
+ android:text="@string/hello_world" />
+
+ <TextView
+ android:id="@+id/MyIpText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_above="@+id/helloworld"
+ android:layout_alignParentLeft="true"
+ android:text="TextView" />
+
+ <Button
+ android:id="@+id/getMyIP"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_below="@+id/startVPN"
+ android:text="Show my IP" />
+
+ <Button
+ android:id="@+id/disconnect"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignBottom="@+id/startVPN"
+ android:layout_toRightOf="@+id/startVPN"
+ android:text="Disconnect" />
+
+ <Button
+ android:id="@+id/startembedded"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_below="@+id/getMyIP"
+ android:text="Start embedded profile" />
</RelativeLayout>