aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/drawable/horizontal_line.xml4
-rw-r--r--app/src/main/res/drawable/ic_build_black_24dp.xml9
-rw-r--r--app/src/main/res/layout/base.xml12
-rw-r--r--app/src/main/res/layout/page_configure.xml81
-rw-r--r--app/src/main/res/layout/page_start.xml18
-rw-r--r--app/src/main/res/menu/menu_start.xml14
-rw-r--r--app/src/main/res/values-ja/strings.xml4
-rw-r--r--app/src/main/res/values-nb-rNO/strings.xml4
-rw-r--r--app/src/main/res/values/colors.xml4
-rw-r--r--app/src/main/res/values/strings.xml12
-rw-r--r--app/src/main/res/values/styles.xml45
11 files changed, 166 insertions, 41 deletions
diff --git a/app/src/main/res/drawable/horizontal_line.xml b/app/src/main/res/drawable/horizontal_line.xml
new file mode 100644
index 0000000..76386bb
--- /dev/null
+++ b/app/src/main/res/drawable/horizontal_line.xml
@@ -0,0 +1,4 @@
1<shape xmlns:android="http://schemas.android.com/apk/res/android">
2 <size android:height="1dp"/>
3 <solid android:color="@color/colorPrimaryLighter"/>
4</shape>
diff --git a/app/src/main/res/drawable/ic_build_black_24dp.xml b/app/src/main/res/drawable/ic_build_black_24dp.xml
new file mode 100644
index 0000000..b099a5c
--- /dev/null
+++ b/app/src/main/res/drawable/ic_build_black_24dp.xml
@@ -0,0 +1,9 @@
1<vector xmlns:android="http://schemas.android.com/apk/res/android"
2 android:width="24dp"
3 android:height="24dp"
4 android:viewportWidth="24.0"
5 android:viewportHeight="24.0">
6 <path
7 android:fillColor="@color/textPrimary"
8 android:pathData="M22.7,19l-9.1,-9.1c0.9,-2.3 0.4,-5 -1.5,-6.9 -2,-2 -5,-2.4 -7.4,-1.3L9,6 6,9 1.6,4.7C0.4,7.1 0.9,10.1 2.9,12.1c1.9,1.9 4.6,2.4 6.9,1.5l9.1,9.1c0.4,0.4 1,0.4 1.4,0l2.3,-2.3c0.5,-0.4 0.5,-1.1 0.1,-1.4z"/>
9</vector>
diff --git a/app/src/main/res/layout/base.xml b/app/src/main/res/layout/base.xml
index 11df049..f2a8f49 100644
--- a/app/src/main/res/layout/base.xml
+++ b/app/src/main/res/layout/base.xml
@@ -27,21 +27,11 @@
27 </android.support.design.widget.AppBarLayout> 27 </android.support.design.widget.AppBarLayout>
28 28
29 <ScrollView 29 <ScrollView
30 android:id="@+id/main_content"
30 android:layout_width="match_parent" 31 android:layout_width="match_parent"
31 android:layout_height="match_parent" 32 android:layout_height="match_parent"
32 app:layout_behavior="@string/appbar_scrolling_view_behavior"> 33 app:layout_behavior="@string/appbar_scrolling_view_behavior">
33 34
34 <FrameLayout
35 android:id="@+id/main_content"
36 android:layout_width="match_parent"
37 android:layout_height="wrap_content"
38 android:paddingBottom="@dimen/activity_vertical_margin"
39 android:paddingLeft="@dimen/activity_horizontal_margin"
40 android:paddingRight="@dimen/activity_horizontal_margin"
41 android:paddingTop="@dimen/activity_vertical_margin">
42
43 </FrameLayout>
44
45 </ScrollView> 35 </ScrollView>
46 36
47</android.support.design.widget.CoordinatorLayout> 37</android.support.design.widget.CoordinatorLayout>
diff --git a/app/src/main/res/layout/page_configure.xml b/app/src/main/res/layout/page_configure.xml
new file mode 100644
index 0000000..3ecdaa6
--- /dev/null
+++ b/app/src/main/res/layout/page_configure.xml
@@ -0,0 +1,81 @@
1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools"
3 android:id="@+id/page_configure"
4 android:layout_width="match_parent"
5 android:layout_height="wrap_content"
6 android:orientation="vertical"
7 tools:context="org.pacien.tincapp.activities.ConfigureActivity">
8
9 <TextView
10 style="@style/AppTheme.SectionTitle"
11 android:text="@string/title_path_info"/>
12
13 <LinearLayout style="@style/AppTheme.List">
14
15 <LinearLayout style="@style/AppTheme.ListBlock">
16
17 <TextView
18 style="@style/AppTheme.BlockTitle"
19 android:text="@string/title_configuration_directories"/>
20
21 <TextView
22 android:id="@+id/text_configuration_directories"
23 style="@style/AppTheme.BlockContent"/>
24
25 </LinearLayout>
26
27 <LinearLayout style="@style/AppTheme.ListBlock">
28
29 <TextView
30 style="@style/AppTheme.BlockTitle"
31 android:text="@string/title_log_directories"/>
32
33 <TextView
34 android:id="@+id/text_log_directories"
35 style="@style/AppTheme.BlockContent"/>
36
37 </LinearLayout>
38
39 <LinearLayout style="@style/AppTheme.ListBlock">
40
41 <TextView
42 style="@style/AppTheme.BlockTitle"
43 android:text="@string/title_tinc_binaries"/>
44
45 <TextView
46 android:id="@+id/text_tinc_binaries"
47 style="@style/AppTheme.BlockContent"/>
48
49 </LinearLayout>
50
51 </LinearLayout>
52
53 <TextView
54 style="@style/AppTheme.SectionTitle"
55 android:text="@string/title_tools"/>
56
57 <LinearLayout style="@style/AppTheme.List">
58
59 <LinearLayout
60 style="@style/AppTheme.ListBlock.Clickable"
61 android:onClick="generateConf">
62
63 <TextView
64 style="@style/AppTheme.BlockTitle"
65 android:text="@string/action_generate_node_configuration_and_keys"/>
66
67 </LinearLayout>
68
69 <LinearLayout
70 style="@style/AppTheme.ListBlock.Clickable"
71 android:onClick="joinNetwork">
72
73 <TextView
74 style="@style/AppTheme.BlockTitle"
75 android:text="@string/action_join_network_via_invitation_url"/>
76
77 </LinearLayout>
78
79 </LinearLayout>
80
81</LinearLayout>
diff --git a/app/src/main/res/layout/page_start.xml b/app/src/main/res/layout/page_start.xml
index 8ead05b..d470dc0 100644
--- a/app/src/main/res/layout/page_start.xml
+++ b/app/src/main/res/layout/page_start.xml
@@ -1,6 +1,6 @@
1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools" 2 xmlns:tools="http://schemas.android.com/tools"
3 android:id="@+id/fragment_start" 3 android:id="@+id/page_start"
4 android:layout_width="match_parent" 4 android:layout_width="match_parent"
5 android:layout_height="wrap_content" 5 android:layout_height="wrap_content"
6 android:orientation="vertical" 6 android:orientation="vertical"
@@ -12,11 +12,6 @@
12 android:text="\nThis is a technical preview of the application, with a minimal user interface that should be sufficient for testing. 12 android:text="\nThis is a technical preview of the application, with a minimal user interface that should be sufficient for testing.
13 \nNo check is performed on user input, and the application will simply crash at the first encountered error (refer to ADB logs)."/> 13 \nNo check is performed on user input, and the application will simply crash at the first encountered error (refer to ADB logs)."/>
14 14
15 <TextView
16 android:layout_width="match_parent"
17 android:layout_height="wrap_content"
18 android:text="\nActions"/>
19
20 <Button 15 <Button
21 android:layout_width="match_parent" 16 android:layout_width="match_parent"
22 android:layout_height="wrap_content" 17 android:layout_height="wrap_content"
@@ -29,15 +24,4 @@
29 android:onClick="startVpnDialog" 24 android:onClick="startVpnDialog"
30 android:text="@string/title_connect_to_network"/> 25 android:text="@string/title_connect_to_network"/>
31 26
32 <TextView
33 android:layout_width="match_parent"
34 android:layout_height="wrap_content"
35 android:text="\nInfo"/>
36
37 <Button
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 android:onClick="confDirDialog"
41 android:text="@string/menu_display_conf_dir"/>
42
43</LinearLayout> 27</LinearLayout>
diff --git a/app/src/main/res/menu/menu_start.xml b/app/src/main/res/menu/menu_start.xml
new file mode 100644
index 0000000..4f455d1
--- /dev/null
+++ b/app/src/main/res/menu/menu_start.xml
@@ -0,0 +1,14 @@
1<menu xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:app="http://schemas.android.com/apk/res-auto"
3 xmlns:tools="http://schemas.android.com/tools"
4 tools:context="org.pacien.tincapp.activities.StartActivity">
5
6 <item
7 android:id="@+id/menu_about"
8 android:icon="@drawable/ic_build_black_24dp"
9 android:onClick="openConfigureActivity"
10 android:tint="@color/colorAccent"
11 android:title="@string/menu_configure"
12 app:showAsAction="ifRoom"/>
13
14</menu>
diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml
index c27f2d1..3f7c75a 100644
--- a/app/src/main/res/values-ja/strings.xml
+++ b/app/src/main/res/values-ja/strings.xml
@@ -11,20 +11,16 @@
11 <string name="info_supported_abis_format">デバイス ABI: %1$s</string> 11 <string name="info_supported_abis_format">デバイス ABI: %1$s</string>
12 12
13 <string name="menu_about">このアプリについて</string> 13 <string name="menu_about">このアプリについて</string>
14 <string name="menu_display_conf_dir">設定ディレクトリを表示</string>
15 14
16 <string name="field_net_name">Tinc ネットワーク名</string> 15 <string name="field_net_name">Tinc ネットワーク名</string>
17 16
18 <string name="title_tinc_config_dir">Tinc 設定ディレクトリ</string>
19 <string name="title_connect_to_network">ネットワークに接続</string> 17 <string name="title_connect_to_network">ネットワークに接続</string>
20 <string name="title_re