From d1acac75b6af3239701a2df020488db2af2dcb05 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Sat, 4 May 2013 15:31:44 +0200 Subject: refactoring: unify the action bar layout --- main/res/layout-land/coords.xml | 7 +---- main/res/layout-land/navigate.xml | 18 +----------- main/res/layout/about_activity.xml | 11 +------- main/res/layout/actionbar.xml | 6 ++++ main/res/layout/actionbar_button_compass.xml | 15 ++++++++++ main/res/layout/actionbar_button_manual.xml | 14 +++++++++ main/res/layout/actionbar_button_map.xml | 13 +++++++++ main/res/layout/actionbar_button_myposition.xml | 12 ++++++++ main/res/layout/actionbar_button_search.xml | 13 +++++++++ main/res/layout/actionbar_progress.xml | 4 +++ main/res/layout/actionbar_title.xml | 16 +++++++++++ main/res/layout/actionbar_with_manual.xml | 9 ++++++ main/res/layout/addresses.xml | 11 +------- main/res/layout/caches.xml | 33 ++++------------------ main/res/layout/cacheview.xml | 24 ++-------------- main/res/layout/coords.xml | 14 +-------- main/res/layout/edit_waypoint_activity.xml | 18 +----------- main/res/layout/gpx.xml | 11 +------- main/res/layout/init.xml | 18 +----------- main/res/layout/main.xml | 14 ++------- main/res/layout/map_google.xml | 27 ++++-------------- main/res/layout/map_mapsforge.xml | 25 +++------------- main/res/layout/map_mapsforge_old.xml | 27 ++++-------------- main/res/layout/map_static.xml | 11 +------- main/res/layout/navigate.xml | 18 +----------- main/res/layout/point.xml | 18 +----------- main/res/layout/popup.xml | 20 ++----------- main/res/layout/search.xml | 18 +----------- main/res/layout/spoilers.xml | 11 +------- main/res/layout/touch.xml | 19 ++----------- main/res/layout/trackable_activity.xml | 18 +----------- main/res/layout/twitter_authorization_activity.xml | 11 +------- main/res/layout/useful_apps.xml | 11 +------- main/res/layout/visit.xml | 19 ++----------- main/res/layout/visit_image.xml | 19 ++----------- main/res/layout/waypoint_popup.xml | 20 ++----------- main/res/values/ids.xml | 5 ---- main/res/values/styles.xml | 2 -- main/src/cgeo/geocaching/CacheDetailActivity.java | 2 +- main/src/cgeo/geocaching/cgeocaches.java | 11 ++++++++ .../ui/dialog/CoordinatesInputDialog.java | 2 +- 41 files changed, 171 insertions(+), 424 deletions(-) create mode 100644 main/res/layout/actionbar.xml create mode 100644 main/res/layout/actionbar_button_compass.xml create mode 100644 main/res/layout/actionbar_button_manual.xml create mode 100644 main/res/layout/actionbar_button_map.xml create mode 100644 main/res/layout/actionbar_button_myposition.xml create mode 100644 main/res/layout/actionbar_button_search.xml create mode 100644 main/res/layout/actionbar_progress.xml create mode 100644 main/res/layout/actionbar_title.xml create mode 100644 main/res/layout/actionbar_with_manual.xml delete mode 100644 main/res/values/ids.xml (limited to 'main') diff --git a/main/res/layout-land/coords.xml b/main/res/layout-land/coords.xml index 1388187..30cc6b5 100644 --- a/main/res/layout-land/coords.xml +++ b/main/res/layout-land/coords.xml @@ -11,12 +11,7 @@ style="@style/action_bar_title" android:text="@string/cache_coordinates" /> - - - + - - - - - - - - - - - - + - - - - - - - - + + + + + \ No newline at end of file diff --git a/main/res/layout/actionbar_button_compass.xml b/main/res/layout/actionbar_button_compass.xml new file mode 100644 index 0000000..932444b --- /dev/null +++ b/main/res/layout/actionbar_button_compass.xml @@ -0,0 +1,15 @@ + + + + + + + + \ No newline at end of file diff --git a/main/res/layout/actionbar_button_manual.xml b/main/res/layout/actionbar_button_manual.xml new file mode 100644 index 0000000..86965f1 --- /dev/null +++ b/main/res/layout/actionbar_button_manual.xml @@ -0,0 +1,14 @@ + + + + + + + + \ No newline at end of file diff --git a/main/res/layout/actionbar_button_map.xml b/main/res/layout/actionbar_button_map.xml new file mode 100644 index 0000000..9b2138a --- /dev/null +++ b/main/res/layout/actionbar_button_map.xml @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file diff --git a/main/res/layout/actionbar_button_myposition.xml b/main/res/layout/actionbar_button_myposition.xml new file mode 100644 index 0000000..3604345 --- /dev/null +++ b/main/res/layout/actionbar_button_myposition.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/main/res/layout/actionbar_button_search.xml b/main/res/layout/actionbar_button_search.xml new file mode 100644 index 0000000..2aa1a50 --- /dev/null +++ b/main/res/layout/actionbar_button_search.xml @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file diff --git a/main/res/layout/actionbar_progress.xml b/main/res/layout/actionbar_progress.xml new file mode 100644 index 0000000..a39d103 --- /dev/null +++ b/main/res/layout/actionbar_progress.xml @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/main/res/layout/actionbar_title.xml b/main/res/layout/actionbar_title.xml new file mode 100644 index 0000000..4fa5348 --- /dev/null +++ b/main/res/layout/actionbar_title.xml @@ -0,0 +1,16 @@ + + + + + + + + + + \ No newline at end of file diff --git a/main/res/layout/actionbar_with_manual.xml b/main/res/layout/actionbar_with_manual.xml new file mode 100644 index 0000000..d56c14e --- /dev/null +++ b/main/res/layout/actionbar_with_manual.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/main/res/layout/addresses.xml b/main/res/layout/addresses.xml index 2be131d..08f5bc1 100644 --- a/main/res/layout/addresses.xml +++ b/main/res/layout/addresses.xml @@ -4,16 +4,7 @@ android:layout_height="fill_parent" android:orientation="vertical" > - - - - - - - - + - + + + + + - - - - - - - - - - - - - + diff --git a/main/res/layout/cacheview.xml b/main/res/layout/cacheview.xml index 89d7152..ec30672 100644 --- a/main/res/layout/cacheview.xml +++ b/main/res/layout/cacheview.xml @@ -8,29 +8,11 @@ - + - + - - - - - - - - - + - - - - - - - - + - - - - - - - - - - - - + - - - - - - - - + - - - - - - - - - - - - + - + - - - - - + - + - + - - - - - - - - - - - + + + diff --git a/main/res/layout/map_mapsforge.xml b/main/res/layout/map_mapsforge.xml index f3b183e..27d6e0d 100644 --- a/main/res/layout/map_mapsforge.xml +++ b/main/res/layout/map_mapsforge.xml @@ -6,30 +6,13 @@ - + - + - + - - - - - - - - - + diff --git a/main/res/layout/map_mapsforge_old.xml b/main/res/layout/map_mapsforge_old.xml index 44b3387..f2cb175 100644 --- a/main/res/layout/map_mapsforge_old.xml +++ b/main/res/layout/map_mapsforge_old.xml @@ -6,30 +6,13 @@ - + - + - - - - - - - - - - - + + + diff --git a/main/res/layout/map_static.xml b/main/res/layout/map_static.xml index ff0435c..edf6c6e 100644 --- a/main/res/layout/map_static.xml +++ b/main/res/layout/map_static.xml @@ -4,16 +4,7 @@ android:layout_height="fill_parent" android:orientation="vertical" > - - - - - - - - + - - - - - - - - - - - - + - - - - - - - - - - - - + - - - - - - - + + + - - - - - - - - - - - - + - - - - - - - - + diff --git a/main/res/layout/touch.xml b/main/res/layout/touch.xml index 09a8033..17553d1 100644 --- a/main/res/layout/touch.xml +++ b/main/res/layout/touch.xml @@ -7,24 +7,11 @@ - + - + - - - - - - - + - - - - - - - - - - - - + - - - - - - - - + - - - - - - - - + - + - + - - - - - - - + - + - + - - - - - - - + - - - - - - - + + + - - - - diff --git a/main/res/values/styles.xml b/main/res/values/styles.xml index caa884a..0116577 100644 --- a/main/res/values/styles.xml +++ b/main/res/values/styles.xml @@ -81,7 +81,6 @@