diff options
Diffstat (limited to 'app/src/main/res')
18 files changed, 201 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/ic_help_primary_24dp.xml b/app/src/main/res/drawable/ic_help_primary_24dp.xml new file mode 100644 index 0000000..b325098 --- /dev/null +++ b/app/src/main/res/drawable/ic_help_primary_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="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,19h-2v-2h2v2zM15.07,11.25l-0.9,0.92C13.45,12.9 13,13.5 13,15h-2v-0.5c0,-1.1 0.45,-2.1 1.17,-2.83l1.24,-1.26c0.37,-0.36 0.59,-0.86 0.59,-1.41 0,-1.1 -0.9,-2 -2,-2s-2,0.9 -2,2L8,9c0,-2.21 1.79,-4 4,-4s4,1.79 4,4c0,0.88 -0.36,1.68 -0.93,2.25z"/> | ||
9 | </vector> | ||
diff --git a/app/src/main/res/icon.png b/app/src/main/res/icon.png new file mode 100644 index 0000000..2e6a55d --- /dev/null +++ b/app/src/main/res/icon.png | |||
Binary files differ | |||
diff --git a/app/src/main/res/icon.svg b/app/src/main/res/icon.svg new file mode 100644 index 0000000..b0a2abc --- /dev/null +++ b/app/src/main/res/icon.svg | |||
@@ -0,0 +1 @@ | |||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48"><defs><linearGradient x1="0" y1="0" x2="0" y2="0" gradientUnits="userSpaceOnUse" id="color-1"><stop offset="0" stop-color="#000000" stop-opacity="0.3"></stop><stop offset="1" stop-color="#000000" stop-opacity="0"></stop></linearGradient><filter id="dropshadow-base"><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .8 0"></feColorMatrix> <feOffset dx="0" dy="1"></feOffset> <feGaussianBlur stdDeviation="1"></feGaussianBlur> <feComposite in="SourceGraphic"></feComposite></filter><filter id="dropshadow-banner" x="-10%" y="-10%" width="120%" height="130%"><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"></feColorMatrix> <feOffset dx="0" dy="1"></feOffset> <feGaussianBlur stdDeviation="0.5"></feGaussianBlur> <feComposite in="SourceGraphic"></feComposite></filter></defs><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="none" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M7,43c-1.10457,0 -2,-0.89543 -2,-2v-34c0,-1.10457 0.89543,-2 2,-2h34c1.10457,0 2,0.89543 2,2v34c0,1.10457 -0.89543,2 -2,2z" id="base 1 9" fill="#424242" stroke-width="1"></path><path d="M31.77839,8.44322l40.00014,40.00014l-6.22271,6.22271l-4.66703,-4.66703h-10.88975v6.22271h-3.11136l-33.77743,-33.77743v-9.33407h18.66814z" fill="url(#color-1)" stroke-width="1"></path><path d="M16.22161,16.22161h15.55678v4.66703l6.22271,-6.22271l-6.22271,-6.22271v4.66703h-18.66814v9.33407h3.11136zM31.77839,31.77839h-15.55678v-4.66703l-6.22271,6.22271l6.22271,6.22271v-4.66703h18.66814v-9.33407h-3.11136z" fill="none" stroke-width="0"></path><path d="M16.22161,22.44432h-3.11136v-9.33407h18.66814v-4.66703l6.22271,6.22271l-6.22271,6.22271v-4.66703h-15.55678zM31.77839,25.55568h3.11136v9.33407h-18.66814v4.66703l-6.22271,-6.22271l6.22271,-6.22271v4.66703h15.55678z" fill="#ffffff" stroke-width="0"></path><path d="M2,24c0,-12.15026 9.84974,-22 22,-22c12.15026,0 22,9.84974 22,22c0,12.15026 -9.84974,22 -22,22c-12.15026,0 -22,-9.84974 -22,-22z" id="base 1 5 1" fill="none" stroke-width="1"></path><path d="M2,24c0,-12.15026 9.84974,-22 22,-22c12.15026,0 22,9.84974 22,22c0,12.15026 -9.84974,22 -22,22c-12.15026,0 -22,-9.84974 -22,-22z" id="base 1 1 1" fill="none" stroke-width="1"></path><g fill="#000000" stroke-width="1" font-family="Roboto, sans-serif" font-weight="normal" font-size="14" text-anchor="start"></g><rect x="2" y="2" width="44" height="22" fill="none" stroke-width="1"></rect><path d="M2,24v-22h44v22z" fill="none" stroke-width="1"></path><path d="M2,24v-22h44v22z" fill="none" stroke-width="1"></path><path d="M2,24v-22h44v22z" fill="none" stroke-width="1"></path><path d="M2,24v-22h44v22z" fill="none" stroke-width="1"></path><g fill="#000000" stroke-width="1" font-family="Roboto, sans-serif" font-weight="normal" font-size="14" text-anchor="start"></g><rect x="2" y="2" width="44" height="22" fill="none" stroke-width="1"></rect><path d="M2,24v-22h44v22z" fill="none" stroke-width="1"></path><path d="M2,24v-22h44v22z" fill="none" stroke-width="1"></path><path d="M2,24v-22h44v22z" fill="none" stroke-width="1"></path><path d="M5,7c0,-1.10457 0.89543,-2 2,-2h34c1.10457,0 2,0.89543 2,2v17h-38z" id="base 1 6 1" fill-opacity="0.1" fill="#000000" stroke-width="1"></path><path d="M2,24v-22h44v22z" fill="none" stroke-width="1"></path></g></svg> \ No newline at end of file | |||
diff --git a/app/src/main/res/layout/base.xml b/app/src/main/res/layout/base.xml new file mode 100644 index 0000000..11df049 --- /dev/null +++ b/app/src/main/res/layout/base.xml | |||
@@ -0,0 +1,47 @@ | |||
1 | <android.support.design.widget.CoordinatorLayout 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 | android:id="@+id/activity_base" | ||
5 | android:layout_width="match_parent" | ||
6 | android:layout_height="match_parent" | ||
7 | android:fitsSystemWindows="true" | ||
8 | tools:context="org.pacien.tincapp.activities.BaseActivity"> | ||
9 | |||
10 | <android.support.design.widget.AppBarLayout | ||
11 | android:id="@+id/appbar" | ||
12 | android:layout_width="match_parent" | ||
13 | android:layout_height="wrap_content" | ||
14 | android:paddingTop="@dimen/appbar_padding_top" | ||
15 | android:theme="@style/AppTheme.AppBarOverlay"> | ||
16 | |||
17 | <android.support.v7.widget.Toolbar | ||
18 | android:id="@+id/toolbar" | ||
19 | android:layout_width="match_parent" | ||
20 | android:layout_height="?attr/actionBarSize" | ||
21 | android:background="?attr/colorPrimary" | ||
22 | app:layout_scrollFlags="enterAlways" | ||
23 | app:popupTheme="@style/AppTheme.PopupOverlay"> | ||
24 | |||
25 | </android.support.v7.widget.Toolbar> | ||
26 | |||
27 | </android.support.design.widget.AppBarLayout> | ||
28 | |||
29 | <ScrollView | ||
30 | android:layout_width="match_parent" | ||
31 | android:layout_height="match_parent" | ||
32 | app:layout_behavior="@string/appbar_scrolling_view_behavior"> | ||
33 | |||
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> | ||
46 | |||
47 | </android.support.design.widget.CoordinatorLayout> | ||
diff --git a/app/src/main/res/layout/dialog_frame.xml b/app/src/main/res/layout/dialog_frame.xml new file mode 100644 index 0000000..82a130f --- /dev/null +++ b/app/src/main/res/layout/dialog_frame.xml | |||
@@ -0,0 +1,11 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | android:layout_width="match_parent" | ||
4 | android:layout_height="wrap_content" | ||
5 | android:orientation="vertical" | ||
6 | android:paddingBottom="@dimen/dialog_vertical_margin" | ||
7 | android:paddingLeft="@dimen/dialog_horizontal_margin" | ||
8 | android:paddingRight="@dimen/dialog_horizontal_margin" | ||
9 | android:paddingTop="@dimen/dialog_vertical_margin"> | ||
10 | |||
11 | </LinearLayout> | ||
diff --git a/app/src/main/res/layout/page_start.xml b/app/src/main/res/layout/page_start.xml new file mode 100644 index 0000000..8ead05b --- /dev/null +++ b/app/src/main/res/layout/page_start.xml | |||
@@ -0,0 +1,43 @@ | |||
1 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
2 | xmlns:tools="http://schemas.android.com/tools" | ||
3 | android:id="@+id/fragment_start" | ||
4 | android:layout_width="match_parent" | ||
5 | android:layout_height="wrap_content" | ||
6 | android:orientation="vertical" | ||
7 | tools:context="org.pacien.tincapp.activities.StartActivity"> | ||
8 | |||
9 | <TextView | ||
10 | android:layout_width="match_parent" | ||
11 | android:layout_height="wrap_content" | ||
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)."/> | ||
14 | |||
15 | <TextView | ||
16 | android:layout_width="match_parent" | ||
17 | android:layout_height="wrap_content" | ||
18 | android:text="\nActions"/> | ||
19 | |||
20 | <Button | ||
21 | android:layout_width="match_parent" | ||
22 | android:layout_height="wrap_content" | ||
23 | android:onClick="requestVpnPermission" | ||
24 | android:text="@string/title_request_vpn_permissions"/> | ||
25 | |||
26 | <Button | ||
27 | android:layout_width="match_parent" | ||
28 | android:layout_height="wrap_content" | ||
29 | android:onClick="startVpnDialog" | ||
30 | android:text="@string/title_connect_to_network"/> | ||
31 | |||
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> | ||
diff --git a/app/src/main/res/menu/menu_base.xml b/app/src/main/res/menu/menu_base.xml new file mode 100644 index 0000000..bfb0c87 --- /dev/null +++ b/app/src/main/res/menu/menu_base.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.BaseActivity"> | ||
5 | |||
6 | <item | ||
7 | android:id="@+id/menu_about" | ||
8 | android:icon="@drawable/ic_help_primary_24dp" | ||
9 | android:onClick="aboutDialog" | ||
10 | android:tint="@color/colorAccent" | ||
11 | android:title="@string/menu_about" | ||
12 | app:showAsAction="ifRoom"/> | ||
13 | |||
14 | </menu> | ||
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..9e2f791 --- /dev/null +++ b/app/src/main/res/mipmap-hdpi/ic_launcher.png | |||
Binary files differ | |||
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..8e7ee07 --- /dev/null +++ b/app/src/main/res/mipmap-mdpi/ic_launcher.png | |||
Binary files differ | |||
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..39523a1 --- /dev/null +++ b/app/src/main/res/mipmap-xhdpi/ic_launcher.png | |||
Binary files differ | |||
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..bbf6351 --- /dev/null +++ b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png | |||
Binary files differ | |||
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..0859e14 --- /dev/null +++ b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png | |||
Binary files differ | |||
diff --git a/app/src/main/res/values-v21/styles.xml b/app/src/main/res/values-v21/styles.xml new file mode 100644 index 0000000..19d23c1 --- /dev/null +++ b/app/src/main/res/values-v21/styles.xml | |||
@@ -0,0 +1,8 @@ | |||
1 | <resources> | ||
2 | <style name="AppTheme.NoActionBar"> | ||
3 | <item name="windowActionBar">false</item> | ||
4 | <item name="windowNoTitle">true</item> | ||
5 | <item name="android:windowDrawsSystemBarBackgrounds">true</item> | ||
6 | <item name="android:statusBarColor">@android:color/transparent</item> | ||
7 | </style> | ||
8 | </resources> | ||
diff --git a/app/src/main/res/values-w820dp/dimens.xml b/app/src/main/res/values-w820dp/dimens.xml new file mode 100644 index 0000000..42a1541 --- /dev/null +++ b/app/src/main/res/values-w820dp/dimens.xml | |||
@@ -0,0 +1,3 @@ | |||
1 | <resources> | ||
2 | <dimen name="activity_horizontal_margin">64dp</dimen> | ||
3 | </resources> | ||
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..5e30dc2 --- /dev/null +++ b/app/src/main/res/values/colors.xml | |||
@@ -0,0 +1,7 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <resources> | ||
3 | <color name="textPrimary">#FFFFFFFF</color> | ||
4 | <color name="colorPrimary">#424242</color> | ||
5 | <color name="colorPrimaryDark">#212121</color> | ||
6 | <color name="colorAccent">#FBC02D</color> | ||
7 | </resources> | ||
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml new file mode 100644 index 0000000..9d64c93 --- /dev/null +++ b/app/src/main/res/values/dimens.xml | |||
@@ -0,0 +1,9 @@ | |||
1 | <resources> | ||
2 | <!-- Default screen margins, per the Android Design guidelines. --> | ||
3 | <dimen name="activity_horizontal_margin">16dp</dimen> | ||
4 | <dimen name="activity_vertical_margin">16dp</dimen> | ||
5 | <dimen name="dialog_horizontal_margin">20dp</dimen> | ||
6 | <dimen name="dialog_vertical_margin">20dp</dimen> | ||
7 | <dimen name="appbar_padding_top">0dp</dimen> | ||