diff options
Diffstat (limited to 'app/src/main/res/layout/status_network_info_fragment.xml')
-rw-r--r-- | app/src/main/res/layout/status_network_info_fragment.xml | 131 |
1 files changed, 69 insertions, 62 deletions
diff --git a/app/src/main/res/layout/status_network_info_fragment.xml b/app/src/main/res/layout/status_network_info_fragment.xml index 2dfe1bc..6bd2b30 100644 --- a/app/src/main/res/layout/status_network_info_fragment.xml +++ b/app/src/main/res/layout/status_network_info_fragment.xml | |||
@@ -30,100 +30,107 @@ | |||
30 | 30 | ||
31 | <variable | 31 | <variable |
32 | name="listFormatter" | 32 | name="listFormatter" |
33 | type="org.pacien.tincapp.activities.status.VpnInterfaceConfigurationFormatter"/> | 33 | type="org.pacien.tincapp.activities.status.networkinfo.VpnInterfaceConfigurationFormatter"/> |
34 | 34 | ||
35 | </data> | 35 | </data> |
36 | 36 | ||
37 | <LinearLayout style="@style/AppTheme.List"> | 37 | <ScrollView |
38 | android:layout_width="match_parent" | ||
39 | android:layout_height="match_parent" | ||
40 | android:orientation="vertical"> | ||
38 | 41 | ||
39 | <LinearLayout style="@style/AppTheme.ListBlock"> | 42 | <LinearLayout style="@style/AppTheme.List"> |
40 | 43 | ||
41 | <TextView | 44 | <LinearLayout style="@style/AppTheme.ListBlock"> |
42 | style="@style/AppTheme.BlockTitle" | ||
43 | android:text="@string/status_network_info_ip_addresses_label"/> | ||
44 | 45 | ||
45 | <TextView | 46 | <TextView |
46 | style="@style/AppTheme.BlockContent" | 47 | style="@style/AppTheme.BlockTitle" |
47 | android:text="@{listFormatter.formatList(vpnInterfaceConfiguration.addresses)}"/> | 48 | android:text="@string/status_network_info_ip_addresses_label"/> |
48 | 49 | ||
49 | </LinearLayout> | 50 | <TextView |
51 | style="@style/AppTheme.BlockContent" | ||
52 | android:text="@{listFormatter.formatList(vpnInterfaceConfiguration.addresses)}"/> | ||
50 | 53 | ||
51 | <LinearLayout style="@style/AppTheme.ListBlock"> | 54 | </LinearLayout> |
52 | 55 | ||
53 | <TextView | 56 | <LinearLayout style="@style/AppTheme.ListBlock"> |
54 | style="@style/AppTheme.BlockTitle" | ||
55 | android:text="@string/status_network_info_routes_label"/> | ||
56 | 57 | ||
57 | <TextView | 58 | <TextView |
58 | style="@style/AppTheme.BlockContent" | 59 | style="@style/AppTheme.BlockTitle" |
59 | android:text="@{listFormatter.formatList(vpnInterfaceConfiguration.routes)}"/> | 60 | android:text="@string/status_network_info_routes_label"/> |
60 | 61 | ||
61 | </LinearLayout> | 62 | <TextView |
63 | style="@style/AppTheme.BlockContent" | ||
64 | android:text="@{listFormatter.formatList(vpnInterfaceConfiguration.routes)}"/> | ||
62 | 65 | ||
63 | <LinearLayout style="@style/AppTheme.ListBlock"> | 66 | </LinearLayout> |
64 | 67 | ||
65 | <TextView | 68 | <LinearLayout style="@style/AppTheme.ListBlock"> |
66 | style="@style/AppTheme.BlockTitle" | ||
67 | android:text="@string/status_network_info_dns_servers_label"/> | ||
68 | 69 | ||
69 | <TextView | 70 | <TextView |
70 | style="@style/AppTheme.BlockContent" | 71 | style="@style/AppTheme.BlockTitle" |
71 | android:text="@{listFormatter.formatList(vpnInterfaceConfiguration.dnsServers)}"/> | 72 | android:text="@string/status_network_info_dns_servers_label"/> |
72 | 73 | ||
73 | </LinearLayout> | 74 | <TextView |
75 | style="@style/AppTheme.BlockContent" | ||
76 | android:text="@{listFormatter.formatList(vpnInterfaceConfiguration.dnsServers)}"/> | ||
74 | 77 | ||
75 | <LinearLayout style="@style/AppTheme.ListBlock"> | 78 | </LinearLayout> |
76 | 79 | ||
77 | <TextView | 80 | <LinearLayout style="@style/AppTheme.ListBlock"> |
78 | style="@style/AppTheme.BlockTitle" | ||
79 | android:text="@string/status_network_info_search_domains_label"/> | ||
80 | 81 | ||
81 | <TextView | 82 | <TextView |
82 | style="@style/AppTheme.BlockContent" | 83 | style="@style/AppTheme.BlockTitle" |
83 | android:text="@{listFormatter.formatList(vpnInterfaceConfiguration.searchDomains)}"/> | 84 | android:text="@string/status_network_info_search_domains_label"/> |
84 | 85 | ||
85 | </LinearLayout> | 86 | <TextView |
87 | style="@style/AppTheme.BlockContent" | ||
88 | android:text="@{listFormatter.formatList(vpnInterfaceConfiguration.searchDomains)}"/> | ||
86 | 89 | ||
87 | <LinearLayout | 90 | </LinearLayout> |
88 | style="@style/AppTheme.ListBlock" | ||
89 | android:visibility="@{vpnInterfaceConfiguration.allowedApplications.isEmpty ? View.GONE : View.VISIBLE}"> | ||
90 | 91 | ||
91 | <TextView | 92 | <LinearLayout |
92 | style="@style/AppTheme.BlockTitle" | 93 | style="@style/AppTheme.ListBlock" |
93 | android:text="@string/status_network_info_allowed_applications_label"/> | 94 | android:visibility="@{vpnInterfaceConfiguration.allowedApplications.isEmpty ? View.GONE : View.VISIBLE}"> |
94 | 95 | ||
95 | <TextView | 96 | <TextView |
96 | style="@style/AppTheme.BlockContent" | 97 | style="@style/AppTheme.BlockTitle" |
97 | android:text="@{listFormatter.formatList(vpnInterfaceConfiguration.allowedApplications)}"/> | 98 | android:text="@string/status_network_info_allowed_applications_label"/> |
98 | 99 | ||
99 | </LinearLayout> | 100 | <TextView |
101 | style="@style/AppTheme.BlockContent" | ||
102 | android:text="@{listFormatter.formatList(vpnInterfaceConfiguration.allowedApplications)}"/> | ||
100 | 103 | ||
101 | <LinearLayout | 104 | </LinearLayout> |
102 | style="@style/AppTheme.ListBlock" | ||
103 | android:visibility="@{vpnInterfaceConfiguration.disallowedApplications.isEmpty ? View.GONE : View.VISIBLE}"> | ||
104 | 105 | ||
105 | <TextView | 106 | <LinearLayout |
106 | style="@style/AppTheme.BlockTitle" | 107 | style="@style/AppTheme.ListBlock" |
107 | android:text="@string/status_network_info_disallowed_applications_label"/> | 108 | android:visibility="@{vpnInterfaceConfiguration.disallowedApplications.isEmpty ? View.GONE : View.VISIBLE}"> |
108 | 109 | ||
109 | <TextView | 110 | <TextView |
110 | style="@style/AppTheme.BlockContent" | 111 | style="@style/AppTheme.BlockTitle" |
111 | android:text="@{listFormatter.formatList(vpnInterfaceConfiguration.disallowedApplications)}"/> | 112 | android:text="@string/status_network_info_disallowed_applications_label"/> |
112 | 113 | ||
113 | </LinearLayout> | 114 | <TextView |
115 | style="@style/AppTheme.BlockContent" | ||
116 | android:text="@{listFormatter.formatList(vpnInterfaceConfiguration.disallowedApplications)}"/> | ||
117 | |||
118 | </LinearLayout> | ||
119 | |||
120 | <LinearLayout style="@style/AppTheme.ListBlock"> | ||
114 | 121 | ||
115 | <LinearLayout style="@style/AppTheme.ListBlock"> | 122 | <TextView |
123 | style="@style/AppTheme.BlockTitle" | ||
124 | android:text="@string/status_network_info_allow_bypass_label"/> | ||
116 | 125 | ||
117 | <TextView | 126 | <TextView |
118 | style="@style/AppTheme.BlockTitle" | 127 | style="@style/AppTheme.BlockContent" |
119 | android:text="@string/status_network_info_allow_bypass_label"/> | 128 | android:text="@{vpnInterfaceConfiguration.allowBypass ? @string/status_network_info_yes_value : @string/status_network_info_no_value}"/> |
120 | 129 | ||
121 | <TextView | 130 | </LinearLayout> |
122 | style="@style/AppTheme.BlockContent" | ||
123 | android:text="@{vpnInterfaceConfiguration.allowBypass ? @string/status_network_info_yes_value : @string/status_network_info_no_value}"/> | ||
124 | 131 | ||
125 | </LinearLayout> | 132 | </LinearLayout> |
126 | 133 | ||
127 | </LinearLayout> | 134 | </ScrollView> |
128 | 135 | ||
129 | </layout> | 136 | </layout> |