aboutsummaryrefslogtreecommitdiffstats
path: root/main/res/layout/main.xml
blob: 6fd54f135234566e14f7d5f741d6e0fc59d6bb19 (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
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
		android:id="@+id/mainscreen"
		android:layout_width="fill_parent"
		android:layout_height="fill_parent"
		android:layout_gravity="center" >
	<LinearLayout style="@style/action_bar">
		<ImageView style="@style/action_bar_icon_cgeo"
				android:onClick="showAbout" />
		<TextView style="@style/action_bar_title" />
		<View style="@style/action_bar_separator" />
		<ImageView style="@style/action_bar_action"
				android:src="@drawable/actionbar_search"
				android:onClick="goSearch" />
		<View style="@style/action_bar_separator" />
		<ImageView style="@style/action_bar_action"
				android:src="@drawable/actionbar_manual"
				android:onClick="goManual" />
	</LinearLayout>
	<LinearLayout
			android:layout_width="fill_parent"
			android:layout_height="wrap_content"
			android:layout_marginTop="45dip"
			android:layout_centerInParent="true"
			android:gravity="center"
			android:orientation="vertical" >
		<LinearLayout
				android:layout_width="wrap_content"
				android:layout_height="fill_parent"
				android:layout_margin="4dip"
				android:gravity="center_horizontal"
				android:orientation="horizontal" >
			<LinearLayout 
					android:layout_width="74dip"
					android:layout_height="wrap_content"
					android:layout_margin="4dip"
					android:orientation="vertical"
					android:onClick="cgeoFindOnMap" >
				<View
						android:id="@+id/map"
						style="@style/icon_mainscreen"
						android:background="@drawable/main_live" />
				<TextView
						style="@style/icon_mainscreen_text"
						android:text="@string/live_map_button" />
			</LinearLayout>
			<LinearLayout
					android:layout_width="74dip"
					android:layout_height="wrap_content"
					android:layout_margin="4dip"
					android:orientation="vertical">
				<View
						android:id="@+id/nearest"
						style="@style/icon_mainscreen"
						android:background="@drawable/main_nearby_disabled" />
				<TextView
						style="@style/icon_mainscreen_text"
						android:text="@string/caches_nearby_button" />
			</LinearLayout>
			<RelativeLayout
					android:layout_width="74dip"
					android:layout_height="wrap_content"
					android:layout_margin="4dip"
					android:onClick="cgeoFindByOffline" >
				<TextView android:id="@+id/offline_count"
						style="@style/icon_mainscreen_count" />
				<LinearLayout
						android:layout_width="74dip"
						android:layout_height="wrap_content"
						android:orientation="vertical"
						android:layout_alignParentTop="true" >
					<View
							android:id="@+id/search_offline"
							style="@style/icon_mainscreen"
							android:background="@drawable/main_stored" />
					<TextView
							style="@style/icon_mainscreen_text"
							android:text="@string/stored_caches_button" />
				</LinearLayout>
			</RelativeLayout>
		</LinearLayout>
		<LinearLayout
				android:layout_width="fill_parent"
				android:layout_height="fill_parent"
				android:layout_margin="4dip"
				android:gravity="center_horizontal"
				android:orientation="horizontal" >
			<LinearLayout
					android:layout_width="74dip"
					android:layout_height="wrap_content"
					android:layout_margin="4dip"
					android:orientation="vertical"
					android:onClick="cgeoSearch" >
				<View
						android:id="@+id/advanced_button"
						style="@style/icon_mainscreen"
						android:background="@drawable/main_search" />
				<TextView
						style="@style/icon_mainscreen_text"
						android:text="@string/advanced_search_button" />
			</LinearLayout>
			<LinearLayout
					android:layout_width="74dip"
					android:layout_height="wrap_content"
					android:layout_margin="4dip"
					android:orientation="vertical"
					android:onClick="cgeoPoint" >
				<View
						android:id="@+id/any_button"
						style="@style/icon_mainscreen"
						android:background="@drawable/main_any" />
				<TextView
						style="@style/icon_mainscreen_text"
						android:text="@string/any_button" />
			</LinearLayout>
			<LinearLayout
					android:layout_width="74dip"
					android:layout_height="wrap_content"
					android:layout_margin="4dip"
					android:orientation="vertical"
					android:onClick="cgeoFilter" >
				<View
						android:id="@+id/filter_button"
						style="@style/icon_mainscreen"
						android:background="@drawable/main_filter" />
				<TextView android:id="@+id/filter_button_title"
						style="@style/icon_mainscreen_text"
						android:text="@null" />
			</LinearLayout>
		</LinearLayout>
	</LinearLayout>
<!-- ** -->
	<RelativeLayout android:id="@+id/helper"
			android:visibility="gone"
			android:layout_width="fill_parent"
			android:layout_height="wrap_content"
			android:layout_alignParentBottom="true"
			android:layout_marginLeft="16dip"
			android:layout_marginRight="16dip"
			android:layout_marginBottom="48dip"
			android:background="@drawable/helper_bcg" >
		<ImageView
				android:layout_width="32dip"
				android:layout_height="32dip"
				android:layout_alignParentLeft="true"
				android:layout_gravity="center"
				android:gravity="center"
				android:layout_margin="4dip"
				android:scaleType="center"
				android:src="@drawable/actionbar_manual" />
		<TextView
				android:layout_width="fill_parent"
				android:layout_height="wrap_content"
				android:layout_alignParentLeft="true"
				android:layout_marginLeft="34dip"
				android:layout_gravity="center"
				android:gravity="center"
				android:padding="4dip"
				android:textSize="14dip"
				android:textColor="@color/text_icon"
				android:text="@string/helper" />
	</RelativeLayout>
<!-- ** -->
	<LinearLayout
			android:layout_width="fill_parent"
			android:layout_height="wrap_content"
			android:layout_alignParentBottom="true"
			android:layout_marginRight="6dip"
			android:layout_marginLeft="6dip"
			android:orientation="vertical">
		<TextView android:id="@+id/user_info"
				style="@style/location_current"
				android:text="@string/init_login_popup_working"/>
		<TextView android:id="@+id/nav_location"
				style="@style/location_current"
				android:text="@string/loc_trying" />
		<RelativeLayout
				android:layout_width="fill_parent"
				android:layout_height="16dip" >
			<TextView android:id="@+id/nav_type"
					style="@style/location_current_type" />
			<TextView android:id="@+id/nav_accuracy"
					style="@style/location_current_accuracy" />
			<TextView android:id="@+id/nav_satellites"
					style="@style/location_current_satellites" />
		</RelativeLayout>
	</LinearLayout>
</RelativeLayout>