[8.2.6][乘客屏] 珠海LOGO修改,此修改对LOGO换肤时不生效 修复bug
This commit is contained in:
@@ -93,27 +93,28 @@ class M2StatusBarView @JvmOverloads constructor(
|
|||||||
updateZhuhaiLogoState()
|
updateZhuhaiLogoState()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Synchronized
|
||||||
private fun updateZhuhaiLogoState(){
|
private fun updateZhuhaiLogoState(){
|
||||||
val zhuhaiLogoParams = iv_zhuhai_logo.layoutParams
|
val zhuhaiLogoParams = iv_zhuhai_logo.layoutParams
|
||||||
val zhuhaiLogoOtherParams = iv_zhuhai_logo_other.layoutParams
|
val zhuhaiLogoOtherParams = iv_zhuhai_logo_other.layoutParams
|
||||||
var logonId = R.dimen.dp_201
|
|
||||||
var logonOtherId = R.dimen.dp_274
|
|
||||||
var logonImgId = R.drawable.shuttle_p_m2_status_bar_logo_zhuhai_mogox
|
|
||||||
var logonOtherImgId = R.drawable.shuttle_p_m2_status_bar_logo_zhuhai_noma_autonoma
|
|
||||||
if (isHaveTask) {
|
if (isHaveTask) {
|
||||||
logonId = R.dimen.dp_62
|
zhuhaiLogoParams.width = resources.getDimensionPixelSize(R.dimen.dp_62)
|
||||||
logonOtherId = R.dimen.dp_98
|
iv_zhuhai_logo.layoutParams = zhuhaiLogoParams
|
||||||
logonImgId = R.drawable.shuttle_p_m2_status_bar_logo_zhuhai
|
iv_zhuhai_logo.setImageResource(R.drawable.shuttle_p_m2_status_bar_logo_zhuhai)
|
||||||
logonOtherImgId = R.drawable.shuttle_p_m2_status_bar_logo_zhuhai_noma
|
|
||||||
|
zhuhaiLogoOtherParams.width = resources.getDimensionPixelSize(R.dimen.dp_98)
|
||||||
|
iv_zhuhai_logo_other.layoutParams = zhuhaiLogoOtherParams
|
||||||
|
iv_zhuhai_logo_other.setImageResource(R.drawable.shuttle_p_m2_status_bar_logo_zhuhai_noma)
|
||||||
} else {
|
} else {
|
||||||
tv_status_line_name.text = ""
|
tv_status_line_name.text = ""
|
||||||
|
zhuhaiLogoParams.width = resources.getDimensionPixelSize( R.dimen.dp_201)
|
||||||
|
iv_zhuhai_logo.layoutParams = zhuhaiLogoParams
|
||||||
|
iv_zhuhai_logo.setImageResource(R.drawable.shuttle_p_m2_status_bar_logo_zhuhai_mogox)
|
||||||
|
|
||||||
|
zhuhaiLogoOtherParams.width = resources.getDimensionPixelSize(R.dimen.dp_274)
|
||||||
|
iv_zhuhai_logo_other.layoutParams = zhuhaiLogoOtherParams
|
||||||
|
iv_zhuhai_logo_other.setImageResource(R.drawable.shuttle_p_m2_status_bar_logo_zhuhai_noma_autonoma)
|
||||||
}
|
}
|
||||||
zhuhaiLogoParams.width = resources.getDimensionPixelSize(logonId)
|
|
||||||
iv_zhuhai_logo.layoutParams = zhuhaiLogoParams
|
|
||||||
zhuhaiLogoOtherParams.width = resources.getDimensionPixelSize(logonOtherId)
|
|
||||||
iv_zhuhai_logo_other.layoutParams = zhuhaiLogoOtherParams
|
|
||||||
iv_zhuhai_logo.setImageResource(logonImgId)
|
|
||||||
iv_zhuhai_logo_other.setImageResource(logonOtherImgId)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onAutopilotCarConfig(carConfigResp: MessagePad.CarConfigResp) {
|
override fun onAutopilotCarConfig(carConfigResp: MessagePad.CarConfigResp) {
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
android:id="@+id/iv_zhuhai_logo"
|
android:id="@+id/iv_zhuhai_logo"
|
||||||
android:layout_width="@dimen/dp_201"
|
android:layout_width="@dimen/dp_201"
|
||||||
android:layout_height="@dimen/dp_58"
|
android:layout_height="@dimen/dp_58"
|
||||||
android:src="@drawable/shuttle_p_m2_status_bar_logo_zhuhai_mogox"
|
|
||||||
app:isUseSkin="true" />
|
app:isUseSkin="true" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
@@ -51,7 +50,6 @@
|
|||||||
android:layout_height="@dimen/dp_58"
|
android:layout_height="@dimen/dp_58"
|
||||||
android:paddingTop="@dimen/dp_1"
|
android:paddingTop="@dimen/dp_1"
|
||||||
android:paddingBottom="@dimen/dp_1"
|
android:paddingBottom="@dimen/dp_1"
|
||||||
android:src="@drawable/shuttle_p_m2_status_bar_logo_zhuhai_noma_autonoma"
|
|
||||||
app:isUseSkin="true" />
|
app:isUseSkin="true" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user