diff --git a/OsmAnd-java/src/net/osmand/map/MapTileDownloader.java b/OsmAnd-java/src/net/osmand/map/MapTileDownloader.java index 5751f0c1cb..5f798decc8 100644 --- a/OsmAnd-java/src/net/osmand/map/MapTileDownloader.java +++ b/OsmAnd-java/src/net/osmand/map/MapTileDownloader.java @@ -8,16 +8,21 @@ import java.net.URL; import java.net.URLConnection; import java.net.UnknownHostException; import java.util.ArrayList; +import java.util.Collection; import java.util.Collections; import java.util.HashSet; +import java.util.Iterator; import java.util.List; import java.util.Set; +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.BlockingDeque; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import net.osmand.PlatformUtil; import net.osmand.util.Algorithms; -import net.osmand.util.LIFOBlockingDeque; import org.apache.commons.logging.Log; @@ -106,14 +111,34 @@ public class MapTileDownloader { public MapTileDownloader(int numberOfThreads){ + threadPoolExecutor = new ThreadPoolExecutor(numberOfThreads, numberOfThreads, TILE_DOWNLOAD_SECONDS_TO_WORK, - TimeUnit.SECONDS, new LIFOBlockingDeque()); + TimeUnit.SECONDS, createQueue()); // 1.6 method but very useful to kill non-running threads // threadPoolExecutor.allowCoreThreadTimeOut(true); pendingToDownload = Collections.synchronizedSet(new HashSet()); currentlyDownloaded = Collections.synchronizedSet(new HashSet()); } + + protected BlockingQueue createQueue() { + boolean loaded = false; + try { + Class cl = Class.forName("java.util.concurrent.LinkedBlockingDeque"); + loaded = cl != null; + } catch (Throwable e) { + e.printStackTrace(); + } + if(!loaded) { + // for Android 2.2 + return new LinkedBlockingQueue(); + } + return createDeque(); + } + + protected static BlockingQueue createDeque() { + return new net.osmand.util.LIFOBlockingDeque(); + } public void addDownloaderCallback(IMapDownloaderCallback callback){ callbacks.add(callback); diff --git a/OsmAnd/res/drawable-large/Thumbs.db b/OsmAnd/res/drawable-large/Thumbs.db new file mode 100644 index 0000000000..c3d48fe357 Binary files /dev/null and b/OsmAnd/res/drawable-large/Thumbs.db differ diff --git a/OsmAnd/res/layout/action_item.xml b/OsmAnd/res/layout/action_item.xml index 775fcce695..5f0bf408fc 100644 --- a/OsmAnd/res/layout/action_item.xml +++ b/OsmAnd/res/layout/action_item.xml @@ -1,28 +1,27 @@ - + - + + + - - \ No newline at end of file diff --git a/OsmAnd/res/layout/alert.xml b/OsmAnd/res/layout/alert.xml index 817467e1d2..a1f16b2867 100644 --- a/OsmAnd/res/layout/alert.xml +++ b/OsmAnd/res/layout/alert.xml @@ -1,12 +1,18 @@ + android:id="@+id/layout" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> - + diff --git a/OsmAnd/res/layout/animate_route.xml b/OsmAnd/res/layout/animate_route.xml index b6d0c1a576..e86bf89bb6 100644 --- a/OsmAnd/res/layout/animate_route.xml +++ b/OsmAnd/res/layout/animate_route.xml @@ -1,9 +1,13 @@ - - + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/OsmAnd/res/layout/calculate_route.xml b/OsmAnd/res/layout/calculate_route.xml index 894e9ac3c9..e62075b0bd 100644 --- a/OsmAnd/res/layout/calculate_route.xml +++ b/OsmAnd/res/layout/calculate_route.xml @@ -2,15 +2,24 @@ - + android:orientation="vertical"> + + + + android:orientation="horizontal"> @@ -20,24 +29,23 @@ android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" - android:layout_marginTop="5dp" > + android:layout_marginTop="5dp"> + android:orientation="vertical"> + android:layout_height="wrap_content"> - + android:textSize="18sp" /> - + android:textSize="18sp" /> - - - + android:layout_height="wrap_content"> - + android:textSize="18sp"> + - + android:layout_marginRight="5dp" + android:textSize="18sp" /> - + diff --git a/OsmAnd/res/layout/change_order_item.xml b/OsmAnd/res/layout/change_order_item.xml index c5745ca82b..551605f45b 100644 --- a/OsmAnd/res/layout/change_order_item.xml +++ b/OsmAnd/res/layout/change_order_item.xml @@ -7,10 +7,15 @@ android:layout_marginTop="2dip" android:layout_marginLeft="5dip" android:layout_marginRight="5dip" - android:weightSum="1" android:background="@color/color_white"> + android:weightSum="1" + android:background="@color/color_white"> + + - - + + + android:layout_height="wrap_content" /> \ No newline at end of file diff --git a/OsmAnd/res/layout/check_item_rel.xml b/OsmAnd/res/layout/check_item_rel.xml index 963005c60f..d646c5a9e3 100644 --- a/OsmAnd/res/layout/check_item_rel.xml +++ b/OsmAnd/res/layout/check_item_rel.xml @@ -2,7 +2,7 @@ + android:layout_gravity="center_vertical"> + android:gravity="center_vertical" /> \ No newline at end of file diff --git a/OsmAnd/res/layout/configuration_dialog.xml b/OsmAnd/res/layout/configuration_dialog.xml index 9fea56916e..9616a88e83 100644 --- a/OsmAnd/res/layout/configuration_dialog.xml +++ b/OsmAnd/res/layout/configuration_dialog.xml @@ -2,16 +2,19 @@ + android:orientation="vertical"> + + - - + android:layout_height="fill_parent"> + \ No newline at end of file diff --git a/OsmAnd/res/layout/download_build_list_item.xml b/OsmAnd/res/layout/download_build_list_item.xml index a961c2f760..da648ef5d9 100644 --- a/OsmAnd/res/layout/download_build_list_item.xml +++ b/OsmAnd/res/layout/download_build_list_item.xml @@ -1,11 +1,22 @@ - + - + - + \ No newline at end of file diff --git a/OsmAnd/res/layout/download_index.xml b/OsmAnd/res/layout/download_index.xml index f36b0549b0..0e0cd8badc 100644 --- a/OsmAnd/res/layout/download_index.xml +++ b/OsmAnd/res/layout/download_index.xml @@ -3,7 +3,7 @@ android:id="@+id/MainLayout" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:orientation="vertical" > + android:orientation="vertical"> - + - - - - + - + + + + + + diff --git a/OsmAnd/res/layout/download_tiles.xml b/OsmAnd/res/layout/download_tiles.xml index 6f1d444e0a..585a90f330 100644 --- a/OsmAnd/res/layout/download_tiles.xml +++ b/OsmAnd/res/layout/download_tiles.xml @@ -1,25 +1,63 @@ - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/OsmAnd/res/layout/drawer_list_doubleitem.xml b/OsmAnd/res/layout/drawer_list_doubleitem.xml index 62df52bd38..7d45ba680c 100644 --- a/OsmAnd/res/layout/drawer_list_doubleitem.xml +++ b/OsmAnd/res/layout/drawer_list_doubleitem.xml @@ -1,43 +1,49 @@ + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingLeft="24dp" + android:paddingRight="16dp"> - - - + + + + + - - + \ No newline at end of file diff --git a/OsmAnd/res/layout/drawer_list_item.xml b/OsmAnd/res/layout/drawer_list_item.xml index 018fc14f55..bda3867a34 100644 --- a/OsmAnd/res/layout/drawer_list_item.xml +++ b/OsmAnd/res/layout/drawer_list_item.xml @@ -18,16 +18,16 @@ tools:src="@drawable/ic_action_info_dark" /> + android:id="@+id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="18sp" + android:layout_weight="1" + android:layout_gravity="center_vertical" + android:layout_marginBottom="8dp" + android:layout_marginTop="8dp" + android:layout_marginLeft="11dp" + tools:text="Some title text" /> - - - - - + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="5dp" + android:minHeight="40dp" + android:layout_marginBottom="5dp"> + + + + + + + - - \ No newline at end of file diff --git a/OsmAnd/res/layout/drawer_list_sub_header.xml b/OsmAnd/res/layout/drawer_list_sub_header.xml index b25762c5a7..4e5fc2e781 100644 --- a/OsmAnd/res/layout/drawer_list_sub_header.xml +++ b/OsmAnd/res/layout/drawer_list_sub_header.xml @@ -1,20 +1,22 @@ - - + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + android:paddingBottom="4dp" + android:paddingLeft="24dp"> + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/editing_poi.xml b/OsmAnd/res/layout/editing_poi.xml index aef8b3823d..de61bc44fd 100644 --- a/OsmAnd/res/layout/editing_poi.xml +++ b/OsmAnd/res/layout/editing_poi.xml @@ -1,213 +1,249 @@ - - - + android:layout_height="fill_parent" > - - - - - - + android:orientation="vertical" > - + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/editing_poi_filter.xml b/OsmAnd/res/layout/editing_poi_filter.xml index 3761a5b150..1e0ebe7af2 100644 --- a/OsmAnd/res/layout/editing_poi_filter.xml +++ b/OsmAnd/res/layout/editing_poi_filter.xml @@ -1,7 +1,13 @@ - + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + \ No newline at end of file diff --git a/OsmAnd/res/layout/editing_poi_filter_list.xml b/OsmAnd/res/layout/editing_poi_filter_list.xml index eac56265ce..6b58341f50 100644 --- a/OsmAnd/res/layout/editing_poi_filter_list.xml +++ b/OsmAnd/res/layout/editing_poi_filter_list.xml @@ -1,14 +1,19 @@ + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> - - - - - + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/editing_tile_source.xml b/OsmAnd/res/layout/editing_tile_source.xml index 9550e79d74..669b5439dc 100644 --- a/OsmAnd/res/layout/editing_tile_source.xml +++ b/OsmAnd/res/layout/editing_tile_source.xml @@ -1,19 +1,19 @@ + android:layout_height="fill_parent"> + android:orientation="vertical"> + + android:stretchColumns="1"> @@ -28,31 +28,32 @@ android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" - android:text="" > + android:text=""> - + + - + android:text="@string/edit_tilesource_choose_existing"> - + android:layout_marginRight="5dp"> - + - + android:minLines="2" + android:text=""> - + - + android:text=""> - + - + android:text=""> - + + android:text="@string/edit_tilesource_expiration_time" /> - + android:text=""> - + + android:orientation="vertical"> - + android:groupIndicator="@android:color/transparent"> \ No newline at end of file diff --git a/OsmAnd/res/layout/expandable_list_item_category.xml b/OsmAnd/res/layout/expandable_list_item_category.xml index d819751060..80d958f620 100644 --- a/OsmAnd/res/layout/expandable_list_item_category.xml +++ b/OsmAnd/res/layout/expandable_list_item_category.xml @@ -6,7 +6,7 @@ android:paddingBottom="5dp" android:paddingLeft="4dp" android:paddingRight="4dp" - android:paddingTop="5dp" > + android:paddingTop="5dp"> - - - + + - + + - + \ No newline at end of file diff --git a/OsmAnd/res/layout/expandable_list_item_category_btn.xml b/OsmAnd/res/layout/expandable_list_item_category_btn.xml index 57a87555b5..4eb673ba56 100644 --- a/OsmAnd/res/layout/expandable_list_item_category_btn.xml +++ b/OsmAnd/res/layout/expandable_list_item_category_btn.xml @@ -6,7 +6,7 @@ android:paddingBottom="5dp" android:paddingLeft="4dp" android:paddingRight="4dp" - android:paddingTop="5dp" > + android:paddingTop="5dp"> - - - + + + android:layout_gravity="right"> - + android:gravity="center_vertical" /> + - + \ No newline at end of file diff --git a/OsmAnd/res/layout/fav_group_edit.xml b/OsmAnd/res/layout/fav_group_edit.xml index 0693fc6cdc..35711533ab 100644 --- a/OsmAnd/res/layout/fav_group_edit.xml +++ b/OsmAnd/res/layout/fav_group_edit.xml @@ -4,7 +4,7 @@ android:layout_height="wrap_content" android:paddingLeft="7dp" android:paddingRight="7dp" - android:stretchColumns="1" > + android:stretchColumns="1"> @@ -18,27 +18,24 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="5dp" - android:layout_marginRight="5dp" - /> + android:layout_marginRight="5dp" /> + android:layout_height="wrap_content"> - + android:text="@string/osmo_edit_color"> - + android:layout_marginRight="5dp"> \ No newline at end of file diff --git a/OsmAnd/res/layout/favourite_edit_dialog.xml b/OsmAnd/res/layout/favourite_edit_dialog.xml index d2fcd8c292..a9eaa2c80f 100644 --- a/OsmAnd/res/layout/favourite_edit_dialog.xml +++ b/OsmAnd/res/layout/favourite_edit_dialog.xml @@ -1,17 +1,41 @@ - - - - - - - - + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingLeft="3dp" + android:paddingRight="3dp" + android:stretchColumns="1"> + + + + + + + + + + + + + + diff --git a/OsmAnd/res/layout/favourites_list_item.xml b/OsmAnd/res/layout/favourites_list_item.xml index 32bcf856ce..1cdf302156 100644 --- a/OsmAnd/res/layout/favourites_list_item.xml +++ b/OsmAnd/res/layout/favourites_list_item.xml @@ -1,21 +1,38 @@ - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/gl_surface.xml b/OsmAnd/res/layout/gl_surface.xml index 5a93699ddb..d4a823c22a 100644 --- a/OsmAnd/res/layout/gl_surface.xml +++ b/OsmAnd/res/layout/gl_surface.xml @@ -2,6 +2,6 @@ + android:layout_height="match_parent"> \ No newline at end of file diff --git a/OsmAnd/res/layout/gpx_item_list_item.xml b/OsmAnd/res/layout/gpx_item_list_item.xml index 572a2f4a04..1b20a3f4ea 100644 --- a/OsmAnd/res/layout/gpx_item_list_item.xml +++ b/OsmAnd/res/layout/gpx_item_list_item.xml @@ -6,17 +6,16 @@ android:paddingBottom="4dp" android:paddingLeft="8dp" android:paddingRight="8dp" - android:paddingTop="4dp" > + android:paddingTop="4dp"> + android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:layout_marginLeft="3dp"> - + android:layout_marginLeft="2dp"> - + android:layout_gravity="center_vertical"> - + android:maxLines="25"> \ No newline at end of file diff --git a/OsmAnd/res/layout/layers_list_activity_item.xml b/OsmAnd/res/layout/layers_list_activity_item.xml index edc2905ea3..d92bd97e78 100644 --- a/OsmAnd/res/layout/layers_list_activity_item.xml +++ b/OsmAnd/res/layout/layers_list_activity_item.xml @@ -12,22 +12,23 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="4dip" - android:layout_marginBottom="4dip" + android:layout_marginBottom="4dip" android:gravity="center_vertical" android:text="@string/layer_poi" android:textSize="18sp" - android:layout_weight="1"/> + android:layout_weight="1" /> - - + \ No newline at end of file diff --git a/OsmAnd/res/layout/list_bigtextview.xml b/OsmAnd/res/layout/list_bigtextview.xml index 3971c75ab4..7e7cf0bf2d 100644 --- a/OsmAnd/res/layout/list_bigtextview.xml +++ b/OsmAnd/res/layout/list_bigtextview.xml @@ -1,7 +1,7 @@ + android:layout_height="wrap_content"> - + android:textSize="20sp"> \ No newline at end of file diff --git a/OsmAnd/res/layout/list_item_bidforfix.xml b/OsmAnd/res/layout/list_item_bidforfix.xml index bdde2dbc7e..aff746d785 100644 --- a/OsmAnd/res/layout/list_item_bidforfix.xml +++ b/OsmAnd/res/layout/list_item_bidforfix.xml @@ -3,7 +3,7 @@ android:id="@+id/bidforfixitemlayout" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:background="@android:color/white" > + android:background="@android:color/white"> - + + android:layout_gravity="center_vertical" /> + android:textColor="@color/color_black" + android:layout_weight="1" /> - - + - + \ No newline at end of file diff --git a/OsmAnd/res/layout/list_menu_item_native.xml b/OsmAnd/res/layout/list_menu_item_native.xml index e4c0daf796..ba3ba5bf85 100644 --- a/OsmAnd/res/layout/list_menu_item_native.xml +++ b/OsmAnd/res/layout/list_menu_item_native.xml @@ -6,47 +6,48 @@ android:orientation="horizontal" android:layout_marginLeft="5dip" android:layout_marginRight="5dip"> - + - + android:layout_gravity="center_vertical" /> + + android:layout_weight="1" /> - - + - - + + \ No newline at end of file diff --git a/OsmAnd/res/layout/list_textview.xml b/OsmAnd/res/layout/list_textview.xml index fb11d5fd3c..5b8c8fe10e 100644 --- a/OsmAnd/res/layout/list_textview.xml +++ b/OsmAnd/res/layout/list_textview.xml @@ -1,6 +1,6 @@ - - + diff --git a/OsmAnd/res/layout/local_index.xml b/OsmAnd/res/layout/local_index.xml index ab2daae1d3..61b01dbcd2 100644 --- a/OsmAnd/res/layout/local_index.xml +++ b/OsmAnd/res/layout/local_index.xml @@ -1,23 +1,28 @@ - - - - - - + android:layout_height="fill_parent" + android:orientation="vertical"> + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/local_index_list_item.xml b/OsmAnd/res/layout/local_index_list_item.xml index 60b04f8445..5c1e9a0248 100644 --- a/OsmAnd/res/layout/local_index_list_item.xml +++ b/OsmAnd/res/layout/local_index_list_item.xml @@ -1,19 +1,52 @@ - + - - - - - - - + - + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/local_openstreetmap.xml b/OsmAnd/res/layout/local_openstreetmap.xml index ffbf4bfcd4..5284128c31 100644 --- a/OsmAnd/res/layout/local_openstreetmap.xml +++ b/OsmAnd/res/layout/local_openstreetmap.xml @@ -1,11 +1,16 @@ - + - + diff --git a/OsmAnd/res/layout/local_openstreetmap_list_item.xml b/OsmAnd/res/layout/local_openstreetmap_list_item.xml index 9311406a47..556b1c6952 100644 --- a/OsmAnd/res/layout/local_openstreetmap_list_item.xml +++ b/OsmAnd/res/layout/local_openstreetmap_list_item.xml @@ -1,7 +1,15 @@ - + - + diff --git a/OsmAnd/res/layout/main.xml b/OsmAnd/res/layout/main.xml index 6e501ee2aa..fe649dba0e 100644 --- a/OsmAnd/res/layout/main.xml +++ b/OsmAnd/res/layout/main.xml @@ -2,21 +2,21 @@ + android:layout_height="match_parent"> - + android:orientation="vertical"> - + - - + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingLeft="8dp" + android:paddingRight="8dp"> - - - - + - + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/menu.xml b/OsmAnd/res/layout/menu.xml index 2ff8192857..62fe03b004 100644 --- a/OsmAnd/res/layout/menu.xml +++ b/OsmAnd/res/layout/menu.xml @@ -1,81 +1,244 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + class="net.osmand.access.AccessibleLayout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@drawable/background"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OsmAnd/res/layout/mode_toggles.xml b/OsmAnd/res/layout/mode_toggles.xml index 94983bdf88..4465909510 100644 --- a/OsmAnd/res/layout/mode_toggles.xml +++ b/OsmAnd/res/layout/mode_toggles.xml @@ -2,8 +2,10 @@ - + \ No newline at end of file diff --git a/OsmAnd/res/layout/navigate_point.xml b/OsmAnd/res/layout/navigate_point.xml index 1374e002bc..9d555ba690 100644 --- a/OsmAnd/res/layout/navigate_point.xml +++ b/OsmAnd/res/layout/navigate_point.xml @@ -1,29 +1,100 @@ - - - + xmlns:custom="http://schemas.android.com/apk/res/net.osmand.plus" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> - - - - - - - - - - - - - - - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/notification.xml b/OsmAnd/res/layout/notification.xml index 7345890252..3a6abe5e3e 100644 --- a/OsmAnd/res/layout/notification.xml +++ b/OsmAnd/res/layout/notification.xml @@ -1,12 +1,18 @@ + android:id="@+id/layout" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:background="@color/color_black"> - + diff --git a/OsmAnd/res/layout/open_bug.xml b/OsmAnd/res/layout/open_bug.xml index d2af1fb61d..959553adee 100644 --- a/OsmAnd/res/layout/open_bug.xml +++ b/OsmAnd/res/layout/open_bug.xml @@ -1,44 +1,53 @@ - + + + + - - + android:inputType="textMultiLine" /> - - + + + - - + + + diff --git a/OsmAnd/res/layout/open_hours_edit.xml b/OsmAnd/res/layout/open_hours_edit.xml index 1a598acc9d..3719f4b0a6 100644 --- a/OsmAnd/res/layout/open_hours_edit.xml +++ b/OsmAnd/res/layout/open_hours_edit.xml @@ -1,11 +1,31 @@ - - - - - - - - + + + + + + + + + + + diff --git a/OsmAnd/res/layout/open_hours_list_item.xml b/OsmAnd/res/layout/open_hours_list_item.xml index 1fca33b6cd..f2a52fc64f 100644 --- a/OsmAnd/res/layout/open_hours_list_item.xml +++ b/OsmAnd/res/layout/open_hours_list_item.xml @@ -1,14 +1,24 @@ + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> - - - + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/osmo_connect_to_device.xml b/OsmAnd/res/layout/osmo_connect_to_device.xml index a8b1c08ada..341444a152 100644 --- a/OsmAnd/res/layout/osmo_connect_to_device.xml +++ b/OsmAnd/res/layout/osmo_connect_to_device.xml @@ -4,14 +4,14 @@ android:layout_height="wrap_content" android:paddingLeft="7dp" android:paddingRight="7dp" - android:stretchColumns="1" > + android:stretchColumns="1"> + android:layout_span="2"> - - + + + android:layout_height="fill_parent"> + android:stretchColumns="1"> @@ -67,9 +67,9 @@ android:paddingLeft="3dp" /> - + - + + + android:stretchColumns="1"> @@ -18,8 +18,7 @@ android:layout_width="180dp" android:layout_height="wrap_content" android:layout_marginLeft="5dp" - android:layout_marginRight="5dp" - android:text="" > + android:layout_marginRight="5dp"> @@ -27,21 +26,19 @@ + android:layout_height="wrap_content"> - + android:text="@string/osmo_edit_color" /> - + android:layout_marginRight="5dp" /> \ No newline at end of file diff --git a/OsmAnd/res/layout/osmo_group_item.xml b/OsmAnd/res/layout/osmo_group_item.xml index c191f2bbfd..2eb6ad6de3 100644 --- a/OsmAnd/res/layout/osmo_group_item.xml +++ b/OsmAnd/res/layout/osmo_group_item.xml @@ -6,7 +6,7 @@ android:paddingBottom="5dp" android:paddingLeft="3dp" android:paddingRight="4dp" - android:paddingTop="5dp" > + android:paddingTop="5dp"> - + android:textSize="18sp" /> - + android:layout_gravity="center_vertical"> + android:paddingTop="5dp"> - + + android:layout_marginLeft="3dp" /> diff --git a/OsmAnd/res/layout/osmo_groups_list.xml b/OsmAnd/res/layout/osmo_groups_list.xml index 49e6df1dcb..d176236cb2 100644 --- a/OsmAnd/res/layout/osmo_groups_list.xml +++ b/OsmAnd/res/layout/osmo_groups_list.xml @@ -2,10 +2,10 @@ + android:orientation="vertical"> + + - - + style="@style/OsmandListView" /> \ No newline at end of file diff --git a/OsmAnd/res/layout/osmo_groups_list_footer.xml b/OsmAnd/res/layout/osmo_groups_list_footer.xml index c706f26af3..475fe4f9f0 100644 --- a/OsmAnd/res/layout/osmo_groups_list_footer.xml +++ b/OsmAnd/res/layout/osmo_groups_list_footer.xml @@ -1,7 +1,7 @@ + android:layout_height="match_parent"> + android:orientation="vertical"> + android:orientation="horizontal"> + android:layout_marginTop="3dp"> - + + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="match_parent" + android:background="@color/color_black"> - + - + - - - - - + + + + + + + + + + + + + + + + + diff --git a/OsmAnd/res/layout/search_address.xml b/OsmAnd/res/layout/search_address.xml index 46decbeef8..76fdec98c3 100644 --- a/OsmAnd/res/layout/search_address.xml +++ b/OsmAnd/res/layout/search_address.xml @@ -2,132 +2,120 @@ + android:layout_height="fill_parent"> + android:orientation="vertical"> + custom:maxVisibleWidth="800dp"> + android:stretchColumns="1"> + android:layout_marginLeft="5dp"> - + android:text="@string/search_address_region" /> + android:text="@string/search_button"> - + style="@style/OsmandListView"> \ No newline at end of file diff --git a/OsmAnd/res/layout/search_address_online_list_item.xml b/OsmAnd/res/layout/search_address_online_list_item.xml index d5a29bb999..26eb651487 100644 --- a/OsmAnd/res/layout/search_address_online_list_item.xml +++ b/OsmAnd/res/layout/search_address_online_list_item.xml @@ -2,7 +2,7 @@ + android:orientation="horizontal"> + android:layout_height="wrap_content" /> \ No newline at end of file diff --git a/OsmAnd/res/layout/search_by_name.xml b/OsmAnd/res/layout/search_by_name.xml index cc3b7e9ef4..63694fdaad 100644 --- a/OsmAnd/res/layout/search_by_name.xml +++ b/OsmAnd/res/layout/search_by_name.xml @@ -1,25 +1,51 @@ - - - - --> + - - - - + - + - + + android:layout_weight="1" /> + android:layout_gravity="center"> - + style="@style/OsmandListView" /> - + android:layout_alignParentTop="true" + style="@style/OsmandListView" /> \ No newline at end of file diff --git a/OsmAnd/res/layout/search_transport_list_item.xml b/OsmAnd/res/layout/search_transport_list_item.xml index 3a2324dede..cf8df22051 100644 --- a/OsmAnd/res/layout/search_transport_list_item.xml +++ b/OsmAnd/res/layout/search_transport_list_item.xml @@ -1,13 +1,21 @@ + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> - - - + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/search_transport_route_item.xml b/OsmAnd/res/layout/search_transport_route_item.xml index fee1c31308..6d6004cb57 100644 --- a/OsmAnd/res/layout/search_transport_route_item.xml +++ b/OsmAnd/res/layout/search_transport_route_item.xml @@ -1,17 +1,27 @@ + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> - - - - + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/searchbyname_list.xml b/OsmAnd/res/layout/searchbyname_list.xml index 69b7677411..27472aa85d 100644 --- a/OsmAnd/res/layout/searchbyname_list.xml +++ b/OsmAnd/res/layout/searchbyname_list.xml @@ -1,9 +1,14 @@ - + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:paddingBottom="3dp" + android:paddingTop="3dp"> + + diff --git a/OsmAnd/res/layout/searchpoi.xml b/OsmAnd/res/layout/searchpoi.xml index 0f61b978f4..fbf521e2c9 100644 --- a/OsmAnd/res/layout/searchpoi.xml +++ b/OsmAnd/res/layout/searchpoi.xml @@ -1,14 +1,36 @@ - - + - - - - - - + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/searchpoi_list.xml b/OsmAnd/res/layout/searchpoi_list.xml index 68f956bfc7..9dd44d3f2e 100644 --- a/OsmAnd/res/layout/searchpoi_list.xml +++ b/OsmAnd/res/layout/searchpoi_list.xml @@ -1,31 +1,42 @@ - - + + - - - - + + + + - - - - - - + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/searchpoifolder_list.xml b/OsmAnd/res/layout/searchpoifolder_list.xml index d6169b4204..dc8f8d16ab 100644 --- a/OsmAnd/res/layout/searchpoifolder_list.xml +++ b/OsmAnd/res/layout/searchpoifolder_list.xml @@ -1,18 +1,32 @@ + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:paddingBottom="5dp" + android:paddingTop="5dp"> - - - - + + + + + diff --git a/OsmAnd/res/layout/selected_track_edit.xml b/OsmAnd/res/layout/selected_track_edit.xml index 046941d040..d40aa29f22 100644 --- a/OsmAnd/res/layout/selected_track_edit.xml +++ b/OsmAnd/res/layout/selected_track_edit.xml @@ -4,7 +4,7 @@ android:layout_height="wrap_content" android:paddingLeft="7dp" android:paddingRight="7dp" - android:stretchColumns="1" > + android:stretchColumns="1"> @@ -18,27 +18,24 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="5dp" - android:layout_marginRight="5dp" - /> + android:layout_marginRight="5dp" /> + android:layout_height="wrap_content"> - + android:text="@string/gpx_split_interval"> - + android:layout_marginRight="5dp"> diff --git a/OsmAnd/res/layout/send_gpx_osm.xml b/OsmAnd/res/layout/send_gpx_osm.xml index 36b7c7eab8..3dbfb20d3f 100644 --- a/OsmAnd/res/layout/send_gpx_osm.xml +++ b/OsmAnd/res/layout/send_gpx_osm.xml @@ -1,29 +1,68 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OsmAnd/res/layout/sherpafy_browse_tour.xml b/OsmAnd/res/layout/sherpafy_browse_tour.xml index 7b0090974d..a367fa0947 100644 --- a/OsmAnd/res/layout/sherpafy_browse_tour.xml +++ b/OsmAnd/res/layout/sherpafy_browse_tour.xml @@ -1,5 +1,4 @@ - @@ -9,12 +8,13 @@ android:layout_width="match_parent" android:layout_height="match_parent" /> - + android:background="@color/color_white" /> \ No newline at end of file diff --git a/OsmAnd/res/layout/sherpafy_drawer_list_item.xml b/OsmAnd/res/layout/sherpafy_drawer_list_item.xml index b2b84112df..5f3db49b2b 100644 --- a/OsmAnd/res/layout/sherpafy_drawer_list_item.xml +++ b/OsmAnd/res/layout/sherpafy_drawer_list_item.xml @@ -4,7 +4,7 @@ android:layout_height="wrap_content" android:orientation="horizontal" android:paddingBottom="8dp" - android:paddingTop="8dp" > + android:paddingTop="8dp"> + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="@drawable/sherpafy_tour_row"> - + - - - - + - - + - + + - + - - + + + + - + \ No newline at end of file diff --git a/OsmAnd/res/layout/sherpafy_loading.xml b/OsmAnd/res/layout/sherpafy_loading.xml index 965fe8f724..4f4723c51b 100644 --- a/OsmAnd/res/layout/sherpafy_loading.xml +++ b/OsmAnd/res/layout/sherpafy_loading.xml @@ -1,14 +1,13 @@ + android:layout_height="fill_parent"> - + android:orientation="horizontal"> - @@ -12,15 +11,15 @@ android:visibility="gone" /> + android:layout_height="fill_parent"> + android:orientation="vertical"> + android:orientation="horizontal"> + android:orientation="horizontal"> - - - + android:layout_marginRight="8dp"> + + + + + android:orientation="vertical"> - + style="@style/OsmandListView"> \ No newline at end of file diff --git a/OsmAnd/res/layout/tab_content.xml b/OsmAnd/res/layout/tab_content.xml index 7812a9efac..55549c7832 100644 --- a/OsmAnd/res/layout/tab_content.xml +++ b/OsmAnd/res/layout/tab_content.xml @@ -1,118 +1,116 @@ - + - + - + - + - + - - + + - + - + - - - + + + - + android:layout_weight="0" /> - - + android:layout_height="0dp" /> + android:layout_weight="1" /> - - - - - - + + + +