[add] 弱势交通预警,距离四舍五入取整数
This commit is contained in:
@@ -3,15 +3,15 @@
|
||||
android:layout_width="@dimen/module_v2n_tip_width"
|
||||
android:layout_height="@dimen/module_v2n_tip_height"
|
||||
android:layout_marginLeft="@dimen/dp_190"
|
||||
android:background="@drawable/v2x_front_warning_bg"
|
||||
android:layout_marginTop="@dimen/dp_20">
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:background="@drawable/v2x_front_warning_bg">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/warning_type_image"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/module_v2n_image_margin_left"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="@dimen/module_v2n_image_margin_left"
|
||||
android:src="@drawable/v2x_road_front_car_warning" />
|
||||
|
||||
<TextView
|
||||
@@ -20,9 +20,9 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="@dimen/dp_28"
|
||||
android:layout_marginRight="@dimen/warning_distance_right"
|
||||
android:maxWidth="@dimen/module_v2n_tip_text_width"
|
||||
android:text="112米"
|
||||
android:text="1米"
|
||||
android:textColor="@color/v2x_FF3036"
|
||||
android:textSize="@dimen/dp_32" />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"type": 2,
|
||||
"lat": 26.879024,
|
||||
"lon": 112.568783,
|
||||
"distance": 2,
|
||||
"distance": 2.234,
|
||||
"collisionLat": 26.8791769,
|
||||
"collisionLon": 112.56896496,
|
||||
"stopLines": [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"type": 1,
|
||||
"lat": 26.87912015,
|
||||
"lon": 112.56885373,
|
||||
"distance": 2,
|
||||
"distance": 2.678,
|
||||
"collisionLat": 26.8791769,
|
||||
"collisionLon": 112.56896496,
|
||||
"stopLines": [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"type": 4,
|
||||
"lat": 26.879339,
|
||||
"lon": 112.568933,
|
||||
"distance": 2,
|
||||
"distance": 2.845,
|
||||
"collisionLat": 26.8791769,
|
||||
"collisionLon": 112.56896496,
|
||||
"stopLines": [
|
||||
|
||||
Reference in New Issue
Block a user