aboutsummaryrefslogtreecommitdiffstats
path: root/main/res/layout/main_activity.xml
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-06-09 17:42:00 +0200
committerBananeweizen <bananeweizen@gmx.de>2013-06-09 17:42:00 +0200
commit6c346e0e7ba72dcfae10b2b494f964857c9a14d4 (patch)
treea6abf489855dab209f577206d32b36637fbe157b /main/res/layout/main_activity.xml
parentafe3dd26ad820b53e7b1db94cade9a104d2ea063 (diff)
downloadcgeo-6c346e0e7ba72dcfae10b2b494f964857c9a14d4.zip
cgeo-6c346e0e7ba72dcfae10b2b494f964857c9a14d4.tar.gz
cgeo-6c346e0e7ba72dcfae10b2b494f964857c9a14d4.tar.bz2
refactoring: use activity names for layouts
Diffstat (limited to 'main/res/layout/main_activity.xml')
-rw-r--r--main/res/layout/main_activity.xml209
1 files changed, 209 insertions, 0 deletions
diff --git a/main/res/layout/main_activity.xml b/main/res/layout/main_activity.xml
new file mode 100644
index 0000000..40e3d6a
--- /dev/null
+++ b/main/res/layout/main_activity.xml
@@ -0,0 +1,209 @@
+<?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" />
+
+ <include layout="@layout/actionbar_button_search" />
+ </LinearLayout>
+
+ <fragment
+ android:id="@+id/status"
+ android:name="cgeo.geocaching.StatusFragment"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_marginLeft="16dip"
+ android:layout_marginRight="16dip"
+ android:layout_marginTop="60dip" />
+ <!-- ** -->
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_centerInParent="true"
+ android:layout_marginTop="45dip"
+ 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:onClick="cgeoFindOnMap"
+ android:orientation="vertical" >
+
+ <ImageView
+ 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" >
+
+ <ImageView
+ 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"
+ android:textIsSelectable="false" />
+
+ <LinearLayout
+ android:layout_width="74dip"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:orientation="vertical" >
+
+ <ImageView
+ 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:onClick="cgeoSearch"
+ android:orientation="vertical" >
+
+ <ImageView
+ 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:onClick="cgeoPoint"
+ android:orientation="vertical" >
+
+ <ImageView
+ 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:onClick="cgeoFilter"
+ android:orientation="vertical" >
+
+ <ImageView
+ 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>
+ <!-- ** -->
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:layout_marginLeft="6dip"
+ android:layout_marginRight="6dip"
+ android:onClick="cgeoNavSettings"
+ 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"
+ android:textIsSelectable="false" />
+
+ <TextView
+ android:id="@+id/nav_accuracy"
+ style="@style/location_current_accuracy"
+ android:textIsSelectable="false" />
+
+ <TextView
+ android:id="@+id/nav_satellites"
+ style="@style/location_current_satellites"
+ android:textIsSelectable="false" />
+ </RelativeLayout>
+ </LinearLayout>
+
+</RelativeLayout> \ No newline at end of file