aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2017-05-05 01:02:16 +0200
committerPacien TRAN-GIRARD2017-05-05 01:02:16 +0200
commit2495d8032eb6839a55080b79ac818383c2f75b79 (patch)
tree6dfbab541368d10ddf1903e3ad93c44ea81080be /app/src/main/res/layout
parent6fcd36fb73b2351a58f812532ce846414ed77117 (diff)
downloadtincapp-2495d8032eb6839a55080b79ac818383c2f75b79.tar.gz
Import unversioned prototypev0.1-preview
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/base.xml47
-rw-r--r--app/src/main/res/layout/dialog_frame.xml11
-rw-r--r--app/src/main/res/layout/page_start.xml43
3 files changed, 101 insertions, 0 deletions
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>