summaryrefslogtreecommitdiff
path: root/remoteExample/src/main/res/layout/fragment_main.xml
diff options
context:
space:
mode:
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>