diff --git a/OsmAnd/res/layout/favorites_list_item.xml b/OsmAnd/res/layout/favorites_list_item.xml index 3da0a6751f..3e45abbe27 100644 --- a/OsmAnd/res/layout/favorites_list_item.xml +++ b/OsmAnd/res/layout/favorites_list_item.xml @@ -88,7 +88,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginLeft="4dp" + android:layout_marginLeft="2dp" android:textColor="?android:textColorSecondary" android:textSize="@dimen/showAllButtonTextSize" /> diff --git a/OsmAnd/res/layout/search_history_list_item.xml b/OsmAnd/res/layout/search_history_list_item.xml index 28ead6023b..90feede49d 100644 --- a/OsmAnd/res/layout/search_history_list_item.xml +++ b/OsmAnd/res/layout/search_history_list_item.xml @@ -69,6 +69,7 @@ android:id="@+id/type_name_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_marginLeft="4dp" android:layout_gravity="center_vertical" android:src="@drawable/ic_small_group" /> diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 188afd1e36..a07cf09319 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -149,7 +149,8 @@ public class MapActivity extends AccessibleActivity { // getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.main); - mapView = new OsmandMapTileView(this); + mapView = new OsmandMapTileView(this, getWindow().getDecorView().getWidth(), + getWindow().getDecorView().getHeight()); mapActions = new MapActivityActions(this); mapLayers = new MapActivityLayers(this); if (mapViewTrackingUtilities == null) { diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 4a574b2170..27ad1e30c4 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -166,13 +166,13 @@ public class OsmandMapTileView implements IMapDownloaderCallback { } }; - public OsmandMapTileView(Activity activity) { + public OsmandMapTileView(Activity activity, int w, int h) { this.activity = activity; - init(activity); + init(activity, w, h); } // ///////////////////////////// INITIALIZING UI PART /////////////////////////////////// - public void init(Context ctx) { + public void init(Context ctx, int w, int h) { application = (OsmandApplication) ctx.getApplicationContext(); settings = application.getSettings(); @@ -217,7 +217,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { LatLon ll = settings.getLastKnownMapLocation(); currentViewport = new RotatedTileBox.RotatedTileBoxBuilder(). setLocation(ll.getLatitude(), ll.getLongitude()).setZoom(settings.getLastKnownMapZoom()). - setPixelDimensions(400, 700).build(); + setPixelDimensions(w, h).build(); currentViewport.setDensity(dm.density); currentViewport.setMapDensity(getSettingsMapDensity()); }