]>
Commit | Line | Data |
---|---|---|
e7908526 TB |
1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <!-- | |
6e398a81 | 3 | Copyright (C) 2012-2016 Tobias Brunner |
e7908526 TB |
4 | Copyright (C) 2012 Giuliano Grassi |
5 | Copyright (C) 2012 Ralf Sager | |
19ef2aec TB |
6 | |
7 | Copyright (C) secunet Security Networks AG | |
e7908526 TB |
8 | |
9 | This program is free software; you can redistribute it and/or modify it | |
10 | under the terms of the GNU General Public License as published by the | |
11 | Free Software Foundation; either version 2 of the License, or (at your | |
12 | option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. | |
13 | ||
14 | This program is distributed in the hope that it will be useful, but | |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
16 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
17 | for more details. | |
18 | --> | |
19 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
20 | android:layout_width="match_parent" | |
21 | android:layout_height="match_parent" | |
6987ddb3 TB |
22 | android:orientation="vertical" |
23 | android:animateLayoutChanges="true" > | |
e7908526 | 24 | |
6987ddb3 TB |
25 | <LinearLayout |
26 | android:id="@+id/vpn_error" | |
27 | android:visibility="gone" | |
a43bdf9a | 28 | android:layout_width="match_parent" |
6987ddb3 TB |
29 | android:layout_height="match_parent" |
30 | android:background="@drawable/error_background" | |
31 | android:orientation="vertical" > | |
a43bdf9a TB |
32 | |
33 | <TextView | |
6987ddb3 | 34 | android:id="@+id/vpn_error_text" |
a43bdf9a TB |
35 | android:layout_width="wrap_content" |
36 | android:layout_height="wrap_content" | |
6987ddb3 | 37 | android:layout_marginLeft="20dp" |
68afdd34 | 38 | android:layout_marginRight="20dp" |
6987ddb3 TB |
39 | android:layout_marginTop="24dp" |
40 | android:layout_marginBottom="12dp" | |
41 | android:text="Failed to establish VPN: Server is unreachable" | |
42 | android:textColor="@color/primary_dark" | |
43 | android:textSize="16sp" /> | |
a43bdf9a | 44 | |
6987ddb3 TB |
45 | <LinearLayout |
46 | android:layout_width="match_parent" | |
47 | android:layout_height="match_parent" | |
48 | android:layout_marginBottom="8dp" | |
49 | android:orientation="horizontal" | |
50 | android:gravity="end" > | |
a43bdf9a | 51 | |
6987ddb3 | 52 | <Button |
68afdd34 | 53 | android:id="@+id/show_log" |
6987ddb3 TB |
54 | android:layout_width="wrap_content" |
55 | android:layout_height="wrap_content" | |
56 | android:layout_marginLeft="8dp" | |
68afdd34 | 57 | android:text="@string/show_log" |
6987ddb3 TB |
58 | android:textColor="@color/primary" |
59 | android:textSize="14sp" | |
60 | android:textStyle="bold" | |
61 | style="?android:attr/borderlessButtonStyle" > | |
62 | </Button> | |
63 | ||
64 | <Button | |
f23b1078 | 65 | android:id="@+id/retry" |
6987ddb3 TB |
66 | android:layout_width="wrap_content" |
67 | android:layout_height="wrap_content" | |
f23b1078 | 68 | android:text="@string/retry" |
6987ddb3 TB |
69 | android:textColor="@color/primary" |
70 | android:textSize="14sp" | |
71 | android:textStyle="bold" | |
72 | style="?android:attr/borderlessButtonStyle" > | |
73 | </Button> | |
74 | </LinearLayout> | |
75 | </LinearLayout> | |
76 | ||
77 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
78 | android:layout_width="match_parent" | |
79 | android:layout_height="match_parent" | |
80 | android:background="@drawable/state_background" | |
81 | android:orientation="vertical" > | |
82 | ||
83 | <GridLayout | |
84 | android:layout_width="match_parent" | |
a43bdf9a | 85 | android:layout_height="wrap_content" |
6987ddb3 TB |
86 | android:layout_marginBottom="10dp" |
87 | android:layout_marginLeft="20dp" | |
88 | android:layout_marginRight="20dp" | |
89 | android:layout_marginTop="10dp" | |
90 | android:columnCount="2" | |
91 | android:rowCount="2" > | |
a43bdf9a | 92 | |
6987ddb3 TB |
93 | <TextView |
94 | android:layout_width="wrap_content" | |
95 | android:layout_height="wrap_content" | |
96 | android:layout_marginRight="5dp" | |
97 | android:gravity="top" | |
98 | android:text="@string/state_label" | |
99 | android:textColor="?android:textColorPrimary" | |
100 | android:textSize="20sp" /> | |
101 | ||
102 | <TextView | |
103 | android:id="@+id/vpn_state" | |
104 | android:layout_width="wrap_content" | |
105 | android:layout_height="wrap_content" | |
106 | android:gravity="top" | |
107 | android:text="@string/state_disabled" | |
108 | android:textColor="?android:textColorSecondary" | |
109 | android:textSize="20sp" /> | |
110 | ||
111 | <TextView | |
112 | android:id="@+id/vpn_profile_label" | |
113 | android:layout_width="wrap_content" | |
114 | android:layout_height="wrap_content" | |
115 | android:layout_marginRight="5dp" | |
116 | android:gravity="top" | |
117 | android:text="@string/profile_label" | |
118 | android:textColor="?android:textColorPrimary" | |
119 | android:textSize="20sp" | |
120 | android:visibility="gone" > | |
121 | </TextView> | |
122 | ||
123 | <TextView | |
124 | android:id="@+id/vpn_profile_name" | |
125 | android:layout_width="wrap_content" | |
126 | android:layout_height="wrap_content" | |
127 | android:gravity="top" | |
128 | android:textSize="20sp" | |
129 | android:visibility="gone" > | |
130 | </TextView> | |
131 | </GridLayout> | |
132 | ||
133 | <ProgressBar | |
134 | android:id="@+id/progress" | |
135 | android:layout_width="match_parent" | |
a43bdf9a | 136 | android:layout_height="wrap_content" |
6987ddb3 TB |
137 | android:layout_marginBottom="10dp" |
138 | android:layout_marginLeft="20dp" | |
139 | android:layout_marginRight="20dp" | |
140 | android:indeterminate="true" | |
141 | android:visibility="gone" | |
142 | style="@style/Widget.AppCompat.ProgressBar.Horizontal" /> | |
6e398a81 | 143 | |
6987ddb3 TB |
144 | <Button |
145 | android:id="@+id/action" | |
146 | android:layout_width="match_parent" | |
147 | android:layout_height="wrap_content" | |
148 | android:layout_marginBottom="10dp" | |
149 | android:layout_marginLeft="20dp" | |
150 | android:layout_marginRight="20dp" | |
151 | android:text="@string/disconnect" | |
152 | style="?android:attr/borderlessButtonStyle" > | |
153 | </Button> | |
8062f973 | 154 | |
6987ddb3 | 155 | </LinearLayout> |
e7908526 | 156 | </LinearLayout> |