GUI is working fairly decently. TunnelService is rather dynamic now. Got onActivity...
[android6bed4] / res / layout / user_interface.xml
1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2     xmlns:tools="http://schemas.android.com/tools"
3     android:layout_width="match_parent"
4     android:layout_height="match_parent"
5     android:orientation="vertical" >
6
7     <Switch
8         android:id="@+id/enable_6bed4"
9         android:layout_width="match_parent"
10         android:layout_height="wrap_content"
11         android:onClick="onEnablerClick"
12         android:paddingTop="25sp"
13         android:text="@string/enable_button_text" />
14
15     <Switch
16         android:paddingTop="35sp"
17         android:id="@+id/persist_accross_reboots"
18         android:layout_width="match_parent"
19         android:layout_height="wrap_content"
20         android:onClick="onPersistClick"
21         android:text="@string/persist_accross_reboots_text" />
22     
23     <TextView
24         android:paddingTop="50sp"
25         xmlns:tools="http://schemas.android.com/tools"
26         android:id="@+id/textView1"
27         android:layout_width="wrap_content"
28         android:layout_height="wrap_content"
29         android:text="@string/advanced_settings"
30         android:textAppearance="?android:attr/textAppearanceLarge"
31         tools:context=".Android6bed4" />
32     
33     <Switch
34         android:paddingTop="20sp"
35         android:id="@+id/overtake_default_route"
36         android:layout_width="match_parent"
37         android:layout_height="wrap_content"
38         android:onClick="onDefaultRouteClick"
39         android:text="@string/overtake_default_route_text" />
40     
41     <TextView
42         android:paddingTop="35sp"
43         xmlns:tools="http://schemas.android.com/tools"
44         android:id="@+id/textView1"
45         android:layout_width="wrap_content"
46         android:layout_height="wrap_content"
47         android:text="@string/tunserver_address"
48         tools:context=".Android6bed4" />
49
50     <EditText
51         android:id="@+id/tunserver_ip_string"
52         android:layout_width="match_parent"
53         android:layout_height="wrap_content"
54         android:inputType="phone"
55         android:hint="@string/tunserver_address_hint" />
56     
57     <TextView
58         android:paddingTop="35sp"
59         xmlns:tools="http://schemas.android.com/tools"
60         android:id="@+id/textView2"
61         android:layout_width="wrap_content"
62         android:layout_height="wrap_content"
63         android:text="@string/tunclient_port"
64         tools:context=".Android6bed4" />
65
66     <EditText
67         android:id="@+id/tunclient_port_number"
68         android:layout_width="match_parent"
69         android:layout_height="wrap_content"
70         android:hint="@string/tunclient_port_hint"
71         android:inputType="number" />
72
73
74 </LinearLayout>