Fix split options

This commit is contained in:
Victor Shcherb 2014-06-09 14:15:59 +02:00
parent 4930cd7f28
commit 72101325e8
3 changed files with 5 additions and 3 deletions

View file

@ -33,7 +33,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingRight="4dp"
android:paddingTop="4dp" >
android:paddingTop="2dp" >
</TextView>
</FrameLayout>
@ -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"

View file

@ -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);

View file

@ -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() {