Added drop-down arrow for gpx row in route preparation settings. Route prep menu fix.

This commit is contained in:
Alexey Kulish 2015-12-18 13:09:38 +03:00
parent faa83dac7a
commit 73c2bd317c
3 changed files with 11 additions and 1 deletions

View file

@ -8,7 +8,8 @@
android:orientation="horizontal"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:paddingLeft="@dimen/list_content_padding">
android:paddingLeft="@dimen/list_content_padding"
android:paddingRight="@dimen/list_content_padding">
<LinearLayout
android:layout_width="0dp"
@ -35,4 +36,10 @@
</LinearLayout>
<ImageView
android:id="@+id/dropDownIcon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:src="@drawable/ic_action_arrow_drop_down"/>
</LinearLayout>

View file

@ -175,6 +175,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener {
if (selected.size() > 0) {
ApplicationMode next = selected.iterator().next();
settings.APPLICATION_MODE.set(next);
updateMenu();
mapActivity.getRoutingHelper().recalculateRouteDueToSettingsChange();
}
}

View file

@ -320,6 +320,8 @@ public class RoutePreferencesMenu {
AndroidUtils.setTextPrimaryColor(mapActivity, (TextView) v.findViewById(R.id.GPXRouteTitle), nightMode);
final TextView gpxSpinner = (TextView) v.findViewById(R.id.GPXRouteSpinner);
AndroidUtils.setTextPrimaryColor(mapActivity, gpxSpinner, nightMode);
((ImageView) v.findViewById(R.id.dropDownIcon))
.setImageDrawable(app.getIconsCache().getContentIcon(R.drawable.ic_action_arrow_drop_down, !nightMode));
updateSpinnerItems(gpxSpinner);
return v;
}