diff --git a/OsmAnd-java/src/net/osmand/util/Algorithms.java b/OsmAnd-java/src/net/osmand/util/Algorithms.java index 97dd1bdd16..4d3637bf98 100644 --- a/OsmAnd-java/src/net/osmand/util/Algorithms.java +++ b/OsmAnd-java/src/net/osmand/util/Algorithms.java @@ -225,6 +225,13 @@ public class Algorithms { } } + public static String capitalizeFirstLetter(String s) { + if (s != null && s.length() > 0) { + return Character.toUpperCase(s.charAt(0)) + (s.length() > 1 ? s.substring(1) : ""); + } else { + return s; + } + } public static boolean objectEquals(Object a, Object b) { if (a == null) { diff --git a/OsmAnd/res/layout/current_gpx_item.xml b/OsmAnd/res/layout/current_gpx_item.xml index 4927254a26..9e13ded31b 100644 --- a/OsmAnd/res/layout/current_gpx_item.xml +++ b/OsmAnd/res/layout/current_gpx_item.xml @@ -7,200 +7,178 @@ android:minHeight="@dimen/list_item_height" android:orientation="vertical"> - - - - - - - - - + android:orientation="horizontal"> + + + + + - - - - - + android:paddingTop="12dp" + android:layout_marginLeft="@dimen/subHeaderMarginLeft" + android:layout_marginRight="@dimen/showAllButtonMarginRight" + android:gravity="center_vertical" + android:orientation="vertical"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:orientation="horizontal"> + + + android:textSize="@dimen/default_list_text_size" + android:text=" • "/> + + - + - + -