summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_offline_map_form.xml
blob: 4b680cd9d2ac9fbb45d397a542c84d418ddcc894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingLeft="20dp"
    android:paddingRight="20dp"
    android:paddingTop="10dp">

    <!--  Region Name  -->
    <TextView
        android:id="@+id/name_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_marginBottom="10dp"
        android:layout_marginTop="10dp"
        android:text="REGION NAME:" />

    <EditText
        android:id="@+id/name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@id/name_label"
        android:layout_toEndOf="@id/name_label"
        android:layout_alignBaseline="@id/name_label"
        android:hint="Enter Region Name" />

    <!--  Style  -->
    <TextView
        android:id="@+id/style_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/name_label"
        android:layout_marginBottom="10dp"
        android:layout_marginTop="10dp"
        android:text="STYLE:" />

    <Spinner
        android:id="@+id/style"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/name"
        android:layout_toRightOf="@id/style_label"
        android:layout_toEndOf="@id/style_label"
        android:layout_alignBaseline="@id/style_label"/>

    <!--  Min Zoom  -->
    <TextView
        android:id="@+id/minzoom_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/style_label"
        android:layout_marginBottom="10dp"
        android:layout_marginTop="10dp"
        android:text="MIN ZOOM:"/>

    <TextView
        android:id="@+id/minzoom"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/style_label"
        android:layout_alignBaseline="@id/minzoom_label"
        android:layout_toRightOf="@+id/minzoom_label"
        android:layout_toEndOf="@+id/minzoom_label"
        android:text="0"/>

    <SeekBar
        android:id="@+id/minzoom_slider"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/style_label"
        android:layout_toRightOf="@+id/minzoom"
        android:layout_toEndOf="@+id/minzoom"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true"
        android:layout_marginBottom="10dp"
        android:layout_marginTop="10dp"/>

    <!--  Max Zoom  -->
    <TextView
        android:id="@+id/maxzoom_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/minzoom_label"
        android:layout_marginBottom="10dp"
        android:layout_marginTop="10dp"
        android:text="MAX ZOOM: "/>

    <TextView
        android:id="@+id/maxzoom"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/minzoom_label"
        android:layout_alignBaseline="@id/maxzoom_label"
        android:layout_toRightOf="@+id/maxzoom_label"
        android:layout_toEndOf="@+id/maxzoom_label"
        android:text="25"/>

    <SeekBar
        android:id="@+id/maxzoom_slider"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/minzoom_label"
        android:layout_toRightOf="@+id/maxzoom"
        android:layout_toEndOf="@+id/maxzoom"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true"
        android:layout_marginBottom="10dp"
        android:layout_marginTop="10dp"/>


    <LinearLayout
        android:id="@+id/north_east_lat_lon"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/maxzoom_label"
        android:layout_marginBottom="10dp"
        android:layout_marginTop="10dp"
        android:orientation="horizontal">

        <TextView
            android:id="@+id/north_east_label"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="NORTH EAST:" />

        <EditText
            android:id="@+id/lat_north"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:inputType="numberSigned|numberDecimal"
            android:layout_weight="1"/>

        <EditText
            android:id="@+id/lon_east"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:inputType="numberSigned|numberDecimal"
            android:layout_weight="1"/>
    </LinearLayout>


    <LinearLayout
        android:id="@+id/south_west_lat_lon"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/north_east_lat_lon"
        android:layout_marginBottom="10dp"
        android:layout_marginTop="10dp"
        android:orientation="horizontal">

        <TextView
            android:id="@+id/south_west_label"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="SOUTH WEST:" />

        <EditText
            android:id="@+id/lat_south"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:inputType="numberSigned|numberDecimal"
            android:layout_weight="1"/>

        <EditText
            android:id="@+id/lon_west"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:inputType="numberSigned|numberDecimal"
            android:layout_weight="1"/>
    </LinearLayout>


    <Button
        android:id="@+id/action_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/south_west_lat_lon"
        android:text="Start Download"/>

    <TextView
        android:id="@+id/download_progress"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBottom="@id/action_button"
        android:layout_below="@id/south_west_lat_lon"
        android:layout_toRightOf="@id/action_button"
        android:layout_toEndOf="@id/action_button"
        android:layout_alignBaseline="@id/action_button"
        android:text="0B, 0%" />



</RelativeLayout>