diff --git a/OsmAnd/res/drawable-hdpi/list_activities_dot_marker1_unpressed.png b/OsmAnd/res/drawable-hdpi/expandable_category_empty.png similarity index 100% rename from OsmAnd/res/drawable-hdpi/list_activities_dot_marker1_unpressed.png rename to OsmAnd/res/drawable-hdpi/expandable_category_empty.png diff --git a/OsmAnd/res/drawable-hdpi/list_activities_background_pushed.png b/OsmAnd/res/drawable-hdpi/expandable_category_pushed.png similarity index 100% rename from OsmAnd/res/drawable-hdpi/list_activities_background_pushed.png rename to OsmAnd/res/drawable-hdpi/expandable_category_pushed.png diff --git a/OsmAnd/res/drawable-hdpi/list_activities_background_unpushed.png b/OsmAnd/res/drawable-hdpi/expandable_category_unpushed.png similarity index 100% rename from OsmAnd/res/drawable-hdpi/list_activities_background_unpushed.png rename to OsmAnd/res/drawable-hdpi/expandable_category_unpushed.png diff --git a/OsmAnd/res/drawable-large/list_activities_dot_marker1_unpressed.png b/OsmAnd/res/drawable-large/expandable_category_empty.png similarity index 100% rename from OsmAnd/res/drawable-large/list_activities_dot_marker1_unpressed.png rename to OsmAnd/res/drawable-large/expandable_category_empty.png diff --git a/OsmAnd/res/drawable-large/list_activities_background_pushed.png b/OsmAnd/res/drawable-large/expandable_category_pushed.png similarity index 100% rename from OsmAnd/res/drawable-large/list_activities_background_pushed.png rename to OsmAnd/res/drawable-large/expandable_category_pushed.png diff --git a/OsmAnd/res/drawable-large/list_activities_background_unpushed.png b/OsmAnd/res/drawable-large/expandable_category_unpushed.png similarity index 100% rename from OsmAnd/res/drawable-large/list_activities_background_unpushed.png rename to OsmAnd/res/drawable-large/expandable_category_unpushed.png diff --git a/OsmAnd/res/drawable-large/list_activities_dot_marker1_pressed.png b/OsmAnd/res/drawable-large/list_activities_dot_marker1_pressed.png deleted file mode 100644 index 9105f295cf..0000000000 Binary files a/OsmAnd/res/drawable-large/list_activities_dot_marker1_pressed.png and /dev/null differ diff --git a/OsmAnd/res/drawable/indicator_custom_gray.xml b/OsmAnd/res/drawable/indicator_custom_gray.xml deleted file mode 100644 index febfe60688..0000000000 --- a/OsmAnd/res/drawable/indicator_custom_gray.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/OsmAnd/res/layout/download_index_list_item_category.xml b/OsmAnd/res/layout/download_index_list_item_category.xml index bc1223169c..c889afbb1f 100644 --- a/OsmAnd/res/layout/download_index_list_item_category.xml +++ b/OsmAnd/res/layout/download_index_list_item_category.xml @@ -10,7 +10,7 @@ android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:paddingLeft="10dp" - android:src="@drawable/indicator_custom_gray" /> + android:src="@drawable/expandable_category_unpushed" /> - + android:src="@drawable/expandable_category_unpushed" /> + android:layout_height="wrap_content" + android:background="@drawable/tab_menu_item_small"> + + + android:textSize="21sp" android:layout_marginLeft="10dp"> diff --git a/OsmAnd/src/net/osmand/plus/activities/OsmandBaseExpandableListAdapter.java b/OsmAnd/src/net/osmand/plus/activities/OsmandBaseExpandableListAdapter.java index 6a25d6fdad..f07869b109 100644 --- a/OsmAnd/src/net/osmand/plus/activities/OsmandBaseExpandableListAdapter.java +++ b/OsmAnd/src/net/osmand/plus/activities/OsmandBaseExpandableListAdapter.java @@ -11,12 +11,12 @@ public abstract class OsmandBaseExpandableListAdapter extends BaseExpandableList ImageView indicator = (ImageView) row.findViewById(R.id.explist_indicator); if (!isExpanded) { if (getChildrenCount(groupPosition) == 0) { - indicator.setImageResource(R.drawable.list_activities_dot_marker1_unpressed); + indicator.setImageResource(R.drawable.expandable_category_empty); } else { - indicator.setImageResource(R.drawable.list_activities_background_unpushed); + indicator.setImageResource(R.drawable.expandable_category_unpushed); } } else { - indicator.setImageResource(R.drawable.list_activities_background_pushed); + indicator.setImageResource(R.drawable.expandable_category_pushed); } } diff --git a/OsmAnd/src/net/osmand/plus/osmedit/LocalOpenstreetmapActivity.java b/OsmAnd/src/net/osmand/plus/osmedit/LocalOpenstreetmapActivity.java index e70953b698..df60504555 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/LocalOpenstreetmapActivity.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/LocalOpenstreetmapActivity.java @@ -15,6 +15,7 @@ import net.osmand.plus.OsmandSettings; import net.osmand.plus.ProgressDialogImplementation; import net.osmand.plus.R; import net.osmand.plus.activities.MapActivity; +import net.osmand.plus.activities.OsmandBaseExpandableListAdapter; import net.osmand.plus.activities.OsmandExpandableListActivity; import android.app.Dialog; import android.app.ProgressDialog; @@ -273,7 +274,7 @@ public class LocalOpenstreetmapActivity extends OsmandExpandableListActivity { } - protected class LocalOpenstreetmapAdapter extends BaseExpandableListAdapter { + protected class LocalOpenstreetmapAdapter extends OsmandBaseExpandableListAdapter { Map> data = new LinkedHashMap>(); List category = new ArrayList(); @@ -419,6 +420,7 @@ public class LocalOpenstreetmapActivity extends OsmandExpandableListActivity { } t.append("]"); nameView.setText(t.toString()); + adjustIndicator(groupPosition, isExpanded, v); return v; }