aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2017-07-04 18:51:57 +0200
committerPacien TRAN-GIRARD2017-07-04 18:51:57 +0200
commit80394001852e8400fd2c3d30e441306957d32243 (patch)
tree6835941520e9fc0e63324bb42eb08a4b6d50f746 /app/src/main/res/layout
parent0b3eef56d244bf40598cba66b1e48479ecbdfaef (diff)
downloadtincapp-80394001852e8400fd2c3d30e441306957d32243.tar.gz
Add status activity
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/dialog_frame.xml1
-rw-r--r--app/src/main/res/layout/dialog_text_monopsace.xml15
-rw-r--r--app/src/main/res/layout/fragment_network_status_header.xml122
-rw-r--r--app/src/main/res/layout/page_status.xml22
4 files changed, 159 insertions, 1 deletions
diff --git a/app/src/main/res/layout/dialog_frame.xml b/app/src/main/res/layout/dialog_frame.xml
index 82a130f..9b4a512 100644
--- a/app/src/main/res/layout/dialog_frame.xml
+++ b/app/src/main/res/layout/dialog_frame.xml
@@ -1,4 +1,3 @@
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="match_parent" 2 android:layout_width="match_parent"
4 android:layout_height="wrap_content" 3 android:layout_height="wrap_content"
diff --git a/app/src/main/res/layout/dialog_text_monopsace.xml b/app/src/main/res/layout/dialog_text_monopsace.xml
new file mode 100644
index 0000000..b7f6f5b
--- /dev/null
+++ b/app/src/main/res/layout/dialog_text_monopsace.xml
@@ -0,0 +1,15 @@
1<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2 android:layout_width="match_parent"
3 android:layout_height="wrap_content"
4 android:paddingBottom="@dimen/dialog_vertical_margin"
5 android:paddingLeft="@dimen/dialog_horizontal_margin"
6 android:paddingRight="@dimen/dialog_horizontal_margin"
7 android:paddingTop="@dimen/dialog_vertical_margin">
8
9 <TextView
10 android:id="@+id/dialog_text_monospace"
11 android:layout_width="match_parent"
12 android:layout_height="wrap_content"
13 android:fontFamily="monospace"/>
14
15</ScrollView>
diff --git a/app/src/main/res/layout/fragment_network_status_header.xml b/app/src/main/res/layout/fragment_network_status_header.xml
new file mode 100644
index 0000000..947183b
--- /dev/null
+++ b/app/src/main/res/layout/fragment_network_status_header.xml
@@ -0,0 +1,122 @@
1<LinearLayout
2 xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools"
4 android:id="@+id/page_configure"
5 android:layout_width="match_parent"
6 android:layout_height="wrap_content"
7 android:orientation="vertical"
8 tools:context="org.pacien.tincapp.activities.StatusActivity">
9
10 <TextView
11 style="@style/AppTheme.SectionTitle"
12 android:text="@string/title_network_info"/>
13
14 <LinearLayout style="@style/AppTheme.List">
15
16 <LinearLayout style="@style/AppTheme.ListBlock">
17
18 <TextView
19 style="@style/AppTheme.BlockTitle"
20 android:text="@string/title_network_name"/>
21
22 <TextView
23 android:id="@+id/text_network_name"
24 style="@style/AppTheme.BlockContent"/>
25
26 </LinearLayout>
27
28 <LinearLayout style="@style/AppTheme.ListBlock">
29
30 <TextView
31 style="@style/AppTheme.BlockTitle"
32 android:text="@string/title_ip_addresses"/>
33
34 <TextView
35 android:id="@+id/text_network_ip_addresses"
36 style="@style/AppTheme.BlockContent"/>
37
38 </LinearLayout>
39
40 <LinearLayout style="@style/AppTheme.ListBlock">
41
42 <TextView
43 style="@style/AppTheme.BlockTitle"
44 android:text="@string/title_routes"/>
45
46 <TextView
47 android:id="@+id/text_network_routes"
48 style="@style/AppTheme.BlockContent"/>
49
50 </LinearLayout>
51
52 <LinearLayout style="@style/AppTheme.ListBlock">
53
54 <TextView
55 style="@style/AppTheme.BlockTitle"
56 android:text="@string/title_dns_servers"/>
57
58 <TextView
59 android:id="@+id/text_network_dns_servers"
60 style="@style/AppTheme.BlockContent"/>
61
62 </LinearLayout>
63
64 <LinearLayout style="@style/AppTheme.ListBlock">
65
66 <TextView
67 style="@style/AppTheme.BlockTitle"
68 android:text="@string/title_search_domains"/>
69
70 <TextView
71 android:id="@+id/text_network_search_domains"
72 style="@style/AppTheme.BlockContent"/>
73
74 </LinearLayout>
75
76 <LinearLayout
77 android:id="@+id/block_network_allowed_applications"
78 style="@style/AppTheme.ListBlock">
79
80 <TextView
81 style="@style/AppTheme.BlockTitle"
82 android:text="@string/title_allowed_applications"/>
83
84 <TextView
85 android:id="@+id/text_network_allowed_applications"
86 style="@style/AppTheme.BlockContent"/>
87
88 </LinearLayout>
89
90 <LinearLayout
91 android:id="@+id/block_network_disallowed_applications"
92 style="@style/AppTheme.ListBlock">
93
94 <TextView
95 style="@style/AppTheme.BlockTitle"
96 android:text="@string/title_disallowed_applications"/>
97
98 <TextView
99 android:id="@+id/text_network_disallowed_applications"
100 style="@style/AppTheme.BlockContent"/>
101
102 </LinearLayout>
103
104 <LinearLayout style="@style/AppTheme.ListBlock">
105
106 <TextView
107 style="@style/AppTheme.BlockTitle"
108 android:text="@string/title_allow_bypass"/>
109
110 <TextView
111 android:id="@+id/text_network_allow_bypass"
112 style="@style/AppTheme.BlockContent"/>
113
114 </LinearLayout>
115
116 </LinearLayout>
117
118 <TextView
119 style="@style/AppTheme.SectionTitle"
120 android:text="@string/title_nodes"/>
121
122</LinearLayout>
diff --git a/app/src/main/res/layout/page_status.xml b/app/src/main/res/layout/page_status.xml
new file mode 100644
index 0000000..22faaf1
--- /dev/null
+++ b/app/src/main/res/layout/page_status.xml
@@ -0,0 +1,22 @@
1<LinearLayout
2 xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools"
4 android:layout_width="match_parent"
5 android:layout_height="match_parent"
6 android:orientation="vertical"
7 tools:context="org.pacien.tincapp.activities.StatusActivity">
8
9 <ListView
10 android:id="@+id/node_list"
11 android:layout_width="match_parent"
12 android:layout_height="match_parent"
13 android:divider="@drawable/horizontal_line"
14 android:footerDividersEnabled="false"
15 android:headerDividersEnabled="false"/>
16
17 <TextView
18 android:id="@+id/node_list_empty"
19 style="@style/AppTheme.ListBlock.Placeholder"
20 android:text="@string/message_no_known_node"/>
21
22</LinearLayout>