[6.5.0][事件弹框] refactor: 乘客屏重新调整 UI 间距;
refactor:更新 公交站,他车倒车/逆行的司机屏icon;
This commit is contained in:
@@ -106,40 +106,40 @@ class RoadV2NEventWindowView @JvmOverloads constructor(
|
||||
containerIconHintLayoutParams.width = LayoutParams.MATCH_PARENT
|
||||
containerIconHintLayoutParams.height = LayoutParams.WRAP_CONTENT
|
||||
containerIconHintLayoutParams.setMargins(
|
||||
AutoSizeUtils.dp2px(context, 50f - 17f), //乘客屏icon ivV2XImage带了白边, 高度、margin需要计算调整
|
||||
AutoSizeUtils.dp2px(context, 40f),
|
||||
AutoSizeUtils.dp2px(context, 50f),
|
||||
AutoSizeUtils.dp2px(context, 36f - 14f), //乘客屏icon ivV2XImage带了白边, 高度、margin需要计算调整
|
||||
AutoSizeUtils.dp2px(context, 30f),
|
||||
AutoSizeUtils.dp2px(context, 36f),
|
||||
0
|
||||
)
|
||||
containerIconHint.layoutParams = containerIconHintLayoutParams
|
||||
|
||||
val ivV2XImageLayoutParams = ivV2XImage.layoutParams as RelativeLayout.LayoutParams
|
||||
ivV2XImageLayoutParams.width =
|
||||
AutoSizeUtils.dp2px(context, 69f + 34f) //乘客屏icon ivV2XImage带了白边, 高度、margin需要计算调整
|
||||
AutoSizeUtils.dp2px(context, 69f + 14f + 14f) //乘客屏icon ivV2XImage带了白边, 高度、margin需要计算调整
|
||||
ivV2XImageLayoutParams.height =
|
||||
AutoSizeUtils.dp2px(context, 69f + 34f) //乘客屏icon ivV2XImage带了白边, 高度、margin需要计算调整
|
||||
AutoSizeUtils.dp2px(context, 69f + 14f + 14f) //乘客屏icon ivV2XImage带了白边, 高度、margin需要计算调整
|
||||
ivV2XImage.layoutParams = ivV2XImageLayoutParams
|
||||
|
||||
val tvV2XHintContentLayoutParams =
|
||||
tvV2XHintContent.layoutParams as RelativeLayout.LayoutParams
|
||||
tvV2XHintContentLayoutParams.setMargins(
|
||||
AutoSizeUtils.dp2px(context, 30f - 17f), //乘客屏icon ivV2XImage带了白边, 高度、margin需要计算调整
|
||||
AutoSizeUtils.dp2px(context, 30f - 14f), //乘客屏icon ivV2XImage带了白边, 高度、margin需要计算调整
|
||||
0,
|
||||
AutoSizeUtils.dp2px(context, 15f),
|
||||
AutoSizeUtils.dp2px(context, 5f),
|
||||
0
|
||||
)
|
||||
tvV2XHintContent.layoutParams = tvV2XHintContentLayoutParams
|
||||
tvV2XHintContent.setTextColor(Color.parseColor("#131415"))
|
||||
tvV2XHintContent.setPadding(0, 0, 0, AutoSizeUtils.dp2px(context, 16f))
|
||||
tvV2XHintContent.setPadding(0, 0, 0, AutoSizeUtils.dp2px(context, 28f))
|
||||
|
||||
val containerImageAndLiveVideoLayoutParams =
|
||||
containerImageAndLiveVideo.layoutParams as ConstraintLayout.LayoutParams
|
||||
containerImageAndLiveVideoLayoutParams.width = AutoSizeUtils.dp2px(context, 498f)
|
||||
containerImageAndLiveVideoLayoutParams.height = AutoSizeUtils.dp2px(context, 298f)
|
||||
containerImageAndLiveVideoLayoutParams.width = AutoSizeUtils.dp2px(context, 480f)
|
||||
containerImageAndLiveVideoLayoutParams.height = AutoSizeUtils.dp2px(context, 280f)
|
||||
containerImageAndLiveVideoLayoutParams.setMargins(
|
||||
AutoSizeUtils.dp2px(context, 51f),
|
||||
AutoSizeUtils.dp2px(context, 40f),
|
||||
AutoSizeUtils.dp2px(context, 0f), //乘客屏icon ivV2XImage带了白边
|
||||
AutoSizeUtils.dp2px(context, 51f),
|
||||
AutoSizeUtils.dp2px(context, 40f),
|
||||
0
|
||||
)
|
||||
containerImageAndLiveVideo.layoutParams = containerImageAndLiveVideoLayoutParams
|
||||
@@ -151,10 +151,10 @@ class RoadV2NEventWindowView @JvmOverloads constructor(
|
||||
tvV2XTimeStrLayoutParams.width = LayoutParams.MATCH_PARENT
|
||||
tvV2XTimeStrLayoutParams.height = LayoutParams.WRAP_CONTENT
|
||||
tvV2XTimeStrLayoutParams.setMargins(
|
||||
AutoSizeUtils.dp2px(context, 51f),
|
||||
AutoSizeUtils.dp2px(context, 40f),
|
||||
AutoSizeUtils.dp2px(context, 20f),
|
||||
AutoSizeUtils.dp2px(context, 51f),
|
||||
AutoSizeUtils.dp2px(context, 33f)
|
||||
AutoSizeUtils.dp2px(context, 40f),
|
||||
AutoSizeUtils.dp2px(context, 19f)
|
||||
)
|
||||
tvV2XTimeStr.layoutParams = tvV2XTimeStrLayoutParams
|
||||
tvV2XTimeStr.setTextColor(Color.parseColor("#131415"))
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
android:layout_toRightOf="@+id/ivV2XImage"
|
||||
android:ellipsize="end"
|
||||
android:gravity="start|top"
|
||||
android:maxLines="2"
|
||||
android:maxLines="1"
|
||||
android:textColor="#131415"
|
||||
android:textSize="@dimen/dp_32"
|
||||
android:textStyle="bold"
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 39 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 40 KiB |
Reference in New Issue
Block a user