[6.5.0][事件弹框] refactor: 乘客屏 弹框右边距和上面 设置按钮对齐;

This commit is contained in:
aibingbing
2024-07-15 17:21:06 +08:00
parent 1977a8c06f
commit e81191b25c

View File

@@ -89,7 +89,7 @@ class RoadV2NEventWindowView @JvmOverloads constructor(
val layoutParam =
roundRoadV2NEventContainer.layoutParams as ConstraintLayout.LayoutParams
layoutParam.width = AutoSizeUtils.dp2px(
context, (580 + 37 + 37).toFloat()
context, (580 + 33 + 33).toFloat()
)
layoutParam.height = ConstraintLayout.LayoutParams.WRAP_CONTENT
roundRoadV2NEventContainer.layoutParams = layoutParam
@@ -97,7 +97,8 @@ class RoadV2NEventWindowView @JvmOverloads constructor(
context,
R.drawable.hmi_v2n_event_bg_passenger
)
val padding = AutoSizeUtils.dp2px(context, 37f)
//乘客屏 背景图 右边带了 7px 渐变
val padding = AutoSizeUtils.dp2px(context, 33f)
roundRoadV2NEventContainer.setPadding(padding, padding, padding, padding)
val containerIconHintLayoutParams =