fragment_main.xml 4.35 KB
Newer Older
Daniel Wolf's avatar
Daniel Wolf committed
1
2
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
4
5
6
7
8
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingBottom="@dimen/activity_vertical_margin">
Daniel Wolf's avatar
Daniel Wolf committed
9

10
11
    <LinearLayout
            android:layout_width="match_parent"
12
            android:layout_height="match_parent"
13
14
            android:layout_above="@id/mainBottomLayout"
            android:gravity="center"
15
            android:orientation="vertical">
16
17
18
19
20
21

        <ImageView
                android:id="@+id/statusImage"
                android:layout_width="128dp"
                android:layout_height="128dp"
                android:contentDescription="@string/contentdescription_main_statusimage"
22
23
24
25
26
27
28
29
30
31
                android:tint="?attr/inputElementColor" />

        <TextView
                android:layout_width="wrap_content"
                android:id="@+id/privateDnsInfo"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:layout_marginTop="16dp"
                android:text="@string/window_main_privatedns_info"
                android:visibility="invisible" />
32
33
34
35
36

    </LinearLayout>

    <LinearLayout
            android:id="@+id/mainBottomLayout"
Daniel Wolf's avatar
Daniel Wolf committed
37
            android:layout_width="match_parent"
38
39
40
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:orientation="vertical">
Daniel Wolf's avatar
Daniel Wolf committed
41

42
43
        <TextView
                android:layout_width="wrap_content"
44
45
46
                android:layout_height="wrap_content"
                android:layout_marginBottom="8dp"
                android:contentDescription="@string/contentdescription_main_infoimage"
47
                android:drawableStart="@drawable/ic_info"
48
                android:drawablePadding="8dp"
49
                android:text="@string/main_dnssurveillance_infotext" />
Daniel Wolf's avatar
Daniel Wolf committed
50

51
52
        <TextView
                android:id="@+id/privacyStatementText"
53
54
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
55
                android:layout_gravity="center"
56
                android:layout_marginBottom="8dp"
57
                android:visibility="gone"
58
59
                android:drawableStart="@drawable/ic_caret_right"
                android:drawablePadding="8dp"
60
61
                android:gravity="center"
                android:textStyle="italic" />
62

63
64
65
        <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">
Daniel Wolf's avatar
Daniel Wolf committed
66

67
68
69
            <ImageButton
                    android:id="@+id/speedTest"
                    android:layout_width="48dp"
70
                    android:layout_height="48dp"
71
                    android:layout_marginEnd="8dp"
72
73
                    android:layout_toStartOf="@id/serverButton"
                    android:background="@drawable/main_roundbuttons"
74
                    android:contentDescription="@string/contentdescription_main_servericon"
75
76
                    android:src="@drawable/ic_wifi"
                    android:tint="?android:attr/textColor" />
77

78
79
80
            <ImageButton
                    android:id="@+id/serverButton"
                    android:layout_width="48dp"
81
                    android:layout_height="48dp"
82
                    android:layout_alignParentEnd="true"
83
84
85
86
                    android:background="@drawable/main_roundbuttons"
                    android:contentDescription="@string/contentdescription_main_servericon"
                    android:src="@drawable/ic_main_server"
                    android:tint="?android:attr/textColor" />
Daniel Wolf's avatar
Daniel Wolf committed
87

88
            <Button
89
90
                    android:id="@+id/startButton"
                    style="@style/Base.Widget.AppCompat.Button.Borderless.Colored"
91
                    android:layout_width="match_parent"
92
                    android:layout_height="wrap_content"
93
94
                    android:layout_centerHorizontal="true"
                    android:layout_marginEnd="8dp"
95
96
97
                    android:layout_toStartOf="@id/speedTest"
                    android:background="@drawable/main_roundbuttons"
                    android:text="@string/all_start" />
98
99
        </RelativeLayout>
    </LinearLayout>
Daniel Wolf's avatar
Daniel Wolf committed
100
</RelativeLayout>