Ui improvements

This commit is contained in:
Chumva 2018-12-14 12:32:40 +02:00
parent a1b4d7ba1a
commit c9f8971f5e
2 changed files with 3 additions and 2 deletions

View file

@ -39,7 +39,7 @@
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="14dp"
android:paddingTop="14dp">
android:paddingTop="8dp">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/from_line"

View file

@ -89,7 +89,7 @@ public class PublicTransportCard extends BaseRouteCard {
String walkTime = OsmAndFormatter.getFormattedDuration((int) routeResult.getWalkTime(), app);
String walkDistance = OsmAndFormatter.getFormattedDistance((int) routeResult.getTravelDist(), app);
wayLine.setText(app.getString(R.string.route_way) + " " + travelTime + " * walking - " + walkTime + " * " + walkDistance);
wayLine.setText(app.getString(R.string.route_way) + " " + travelTime + " walking - " + walkTime + " " + walkDistance);
wayLine.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
@ -107,6 +107,7 @@ public class PublicTransportCard extends BaseRouteCard {
AndroidUtils.setBackground(app, view.findViewById(R.id.details_button_descr), nightMode, R.drawable.ripple_light, R.drawable.ripple_dark);
}
AndroidUtils.setBackground(app, view, nightMode, R.color.activity_background_light, R.color.activity_background_dark);
AndroidUtils.setBackground(app, view.findViewById(R.id.top_divider), nightMode,
R.color.divider_light, R.color.divider_dark);
AndroidUtils.setBackground(app, view.findViewById(R.id.routes_info_container), nightMode,