Added TypedValue for distance size.
This commit is contained in:
parent
6bd9273de6
commit
c330fc9e76
1 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.util.TypedValue;
|
||||
import net.osmand.CallbackWithObject;
|
||||
import net.osmand.data.LatLon;
|
||||
import net.osmand.plus.GPXUtilities;
|
||||
|
@ -178,7 +179,7 @@ public class RoutePointsActivity extends OsmandListActivity {
|
|||
holder.name.setTextColor(getResources().getColor(R.color.osmbug_closed));
|
||||
holder.dateOrDistance.setTextColor(getResources().getColor(R.color.color_unknown));
|
||||
holder.dateOrDistance.setText(point.getTime());
|
||||
holder.dateOrDistance.setTextSize(14);
|
||||
holder.dateOrDistance.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14);
|
||||
|
||||
} else {
|
||||
if (point.isNextNavigate()) {
|
||||
|
@ -193,7 +194,7 @@ public class RoutePointsActivity extends OsmandListActivity {
|
|||
}
|
||||
holder.name.setTextColor(getResources().getColor(R.color.color_update));
|
||||
holder.dateOrDistance.setTextColor(getResources().getColor(R.color.color_distance));
|
||||
holder.dateOrDistance.setTextSize(20);
|
||||
holder.dateOrDistance.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20);
|
||||
}
|
||||
return convertView;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue