android: Avoid ProgressDialogs in VPN state fragment
[strongswan.git] / src / frontends / android / app / src / main / res / layout / vpn_state_fragment.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) 2012-2016 Tobias Brunner
4 Copyright (C) 2012 Giuliano Grassi
5 Copyright (C) 2012 Ralf Sager
6 Hochschule fuer Technik Rapperswil
7
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2 of the License, or (at your
11 option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
12
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17 -->
18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="match_parent"
20 android:layout_height="match_parent"
21 android:paddingBottom="2dp"
22 android:background="@drawable/state_background"
23 android:orientation="vertical" >
24
25 <GridLayout
26 android:layout_width="match_parent"
27 android:layout_height="wrap_content"
28 android:layout_marginBottom="10dp"
29 android:layout_marginLeft="20dp"
30 android:layout_marginRight="20dp"
31 android:layout_marginTop="10dp"
32 android:columnCount="2"
33 android:rowCount="2" >
34
35 <TextView
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
38 android:layout_marginRight="5dp"
39 android:gravity="top"
40 android:text="@string/state_label"
41 android:textColor="?android:textColorPrimary"
42 android:textSize="20sp" />
43
44 <TextView
45 android:id="@+id/vpn_state"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:gravity="top"
49 android:text="@string/state_disabled"
50 android:textColor="?android:textColorSecondary"
51 android:textSize="20sp" />
52
53 <TextView
54 android:id="@+id/vpn_profile_label"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 android:layout_marginRight="5dp"
58 android:gravity="top"
59 android:text="@string/profile_label"
60 android:textColor="?android:textColorPrimary"
61 android:textSize="20sp"
62 android:visibility="gone" >
63 </TextView>
64
65 <TextView
66 android:id="@+id/vpn_profile_name"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:gravity="top"
70 android:textSize="20sp"
71 android:visibility="gone" >
72 </TextView>
73 </GridLayout>
74
75 <ProgressBar
76 android:id="@+id/progress"
77 android:layout_width="match_parent"
78 android:layout_height="wrap_content"
79 android:layout_marginBottom="10dp"
80 android:layout_marginLeft="20dp"
81 android:layout_marginRight="20dp"
82 android:indeterminate="true"
83 android:visibility="gone"
84 style="@style/Widget.AppCompat.ProgressBar.Horizontal" />
85
86 <Button
87 android:id="@+id/action"
88 android:layout_width="match_parent"
89 android:layout_height="wrap_content"
90 android:layout_marginBottom="10dp"
91 android:layout_marginLeft="20dp"
92 android:layout_marginRight="20dp"
93 android:text="@string/disconnect"
94 style="?android:attr/borderlessButtonStyle" >
95 </Button>
96
97 </LinearLayout>