Ui improvements
This commit is contained in:
parent
a1b4d7ba1a
commit
c9f8971f5e
2 changed files with 3 additions and 2 deletions
|
@ -39,7 +39,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingBottom="14dp"
|
android:paddingBottom="14dp"
|
||||||
android:paddingTop="14dp">
|
android:paddingTop="8dp">
|
||||||
|
|
||||||
<net.osmand.plus.widgets.TextViewEx
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
android:id="@+id/from_line"
|
android:id="@+id/from_line"
|
||||||
|
|
|
@ -89,7 +89,7 @@ public class PublicTransportCard extends BaseRouteCard {
|
||||||
String walkTime = OsmAndFormatter.getFormattedDuration((int) routeResult.getWalkTime(), app);
|
String walkTime = OsmAndFormatter.getFormattedDuration((int) routeResult.getWalkTime(), app);
|
||||||
String walkDistance = OsmAndFormatter.getFormattedDistance((int) routeResult.getTravelDist(), 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() {
|
wayLine.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
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.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,
|
AndroidUtils.setBackground(app, view.findViewById(R.id.top_divider), nightMode,
|
||||||
R.color.divider_light, R.color.divider_dark);
|
R.color.divider_light, R.color.divider_dark);
|
||||||
AndroidUtils.setBackground(app, view.findViewById(R.id.routes_info_container), nightMode,
|
AndroidUtils.setBackground(app, view.findViewById(R.id.routes_info_container), nightMode,
|
||||||
|
|
Loading…
Reference in a new issue