diff --git a/OsmAnd/res/layout/drawer_list_header.xml b/OsmAnd/res/layout/drawer_list_header.xml index 82d7bee642..94a6201343 100644 --- a/OsmAnd/res/layout/drawer_list_header.xml +++ b/OsmAnd/res/layout/drawer_list_header.xml @@ -10,6 +10,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content"/> - - - - - + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="48dp" + android:orientation="horizontal" + android:paddingLeft="16dp" + android:paddingRight="16dp"> + + + + + + + + - + + + \ 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 3b786b85b2..47e4c77e4f 100644 --- a/OsmAnd/res/layout/drawer_list_sub_header.xml +++ b/OsmAnd/res/layout/drawer_list_sub_header.xml @@ -4,11 +4,20 @@ android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginLeft="16dp"> + android:background="#fffc00" + android:paddingLeft="16dp"> + android:layout_marginTop="16dp" + android:layout_marginBottom="9dp" + android:capitalize="characters" + android:inputType="textCapCharacters" + android:textSize="14sp" + android:ellipsize="end" + android:background="#ff0202" + android:gravity="left|bottom" + android:layout_height="40dp"/> + \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/ContextMenuAdapter.java b/OsmAnd/src/net/osmand/plus/ContextMenuAdapter.java index 156dc27491..e462bb6719 100644 --- a/OsmAnd/src/net/osmand/plus/ContextMenuAdapter.java +++ b/OsmAnd/src/net/osmand/plus/ContextMenuAdapter.java @@ -253,7 +253,7 @@ public class ContextMenuAdapter { v.setTag(lid); } TextView tv = (TextView) v.findViewById(R.id.title); - tv.setText(getItemName(position)); + tv.setText(isCategory(position) ? getItemName(position).toUpperCase() : getItemName(position)); int imageId = getImageId(position, holoLight); if (imageId != 0) {