[Add function]增加外部设置自车模型的方法

CallerHDMapManager.changeCurrentIcon(R.raw.xiaobache)

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2021-11-11 17:53:27 +08:00
parent bf9b0e2712
commit cd14017753
45 changed files with 74 additions and 244 deletions

View File

@@ -85,6 +85,17 @@ class DebugSettingView @JvmOverloads constructor(
}
}
tbChangeCurrentCarIcon.setOnCheckedChangeListener { buttonView, isChecked ->
if (!isChecked) {
// 替换为出租车图标
CallerHDMapManager.changeCurrentIcon(R.raw.xiaobache)
} else {
// 替换为小巴车图标
CallerHDMapManager.changeCurrentIcon(R.raw.xiaobache)
}
}
tbSpeedView.setOnCheckedChangeListener { buttonView, isChecked ->
if (!isChecked) {
CallerHmiManager.setSpeedChartViewVisibility(View.VISIBLE)

View File

@@ -41,6 +41,16 @@
app:justifyContent="flex_start"
tools:visibility="visible">
<ToggleButton
android:id="@+id/tbChangeCurrentCarIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:gravity="center"
android:textOff="修改自车为「小巴车」"
android:textOn="修改自车为「出租车」"
android:textSize="@dimen/dp_34" />
<ToggleButton
android:id="@+id/tbSpeedView"
android:layout_width="wrap_content"