diff --git a/OsmAnd/res/layout/gpx_item_list_item.xml b/OsmAnd/res/layout/gpx_item_list_item.xml index 5c5dc2e715..e9ad71043a 100644 --- a/OsmAnd/res/layout/gpx_item_list_item.xml +++ b/OsmAnd/res/layout/gpx_item_list_item.xml @@ -33,7 +33,7 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:paddingRight="4dp" - android:paddingTop="4dp" > + android:paddingTop="2dp" > @@ -41,6 +41,7 @@ android:id="@+id/name" style="@style/ListText.Small" android:layout_width="0dp" + android:paddingTop="2dp" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:layout_weight="1" diff --git a/OsmAnd/src/net/osmand/plus/OsmAndFormatter.java b/OsmAnd/src/net/osmand/plus/OsmAndFormatter.java index a78a61ebb2..e602308867 100644 --- a/OsmAnd/src/net/osmand/plus/OsmAndFormatter.java +++ b/OsmAnd/src/net/osmand/plus/OsmAndFormatter.java @@ -16,8 +16,8 @@ public class OsmAndFormatter { public final static float METERS_IN_ONE_MILE = 1609.344f; // 1609.344 public final static float YARDS_IN_ONE_METER = 1.0936f; public final static float FOOTS_IN_ONE_METER = YARDS_IN_ONE_METER * 3f; - private static final DecimalFormat fixed2 = new DecimalFormat("#.##"); - private static final DecimalFormat fixed1 = new DecimalFormat("#.#"); + private static final DecimalFormat fixed2 = new DecimalFormat("#.00"); + private static final DecimalFormat fixed1 = new DecimalFormat("#.0"); { fixed2.setMinimumFractionDigits(2); fixed1.setMinimumFractionDigits(1); diff --git a/OsmAnd/src/net/osmand/plus/activities/SelectedGPXFragment.java b/OsmAnd/src/net/osmand/plus/activities/SelectedGPXFragment.java index 7f24d47474..ce399926b2 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SelectedGPXFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/SelectedGPXFragment.java @@ -62,6 +62,7 @@ public class SelectedGPXFragment extends OsmandExpandableListFragment { super.onResume(); getListView().setFastScrollEnabled(true); lightContent = app.getSettings().isLightContent(); + adapter.setView(getExpandableListView()); adapter.setDisplayGroups(selectedGpxHelper.getDisplayGroups()); selectedGpxHelper.setUiListener(new Runnable() {