summaryrefslogtreecommitdiff
path: root/remoteExample/src/main/res/layout/fragment_main.xml
blob: eda367403b8332915cdb62d593fa0b2146c3da97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!--
  ~ Copyright (c) 2012-2017 Arne Schwabe
  ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
  -->

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    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="@string/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="@string/no_now"
            android:visibility="visible" />

    <TextView
            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"
            tools: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="@string/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="@string/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="@string/start_embedded" />

    <Button
        android:id="@+id/addNewProfile"
        style="?android:attr/buttonStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/addNew"
        android:layout_alignTop="@+id/startembedded"
        android:layout_toRightOf="@+id/startembedded"
        android:layout_toEndOf="@+id/startembedded" />

</RelativeLayout>