[Update]自定义绘制轨迹线

This commit is contained in:
chenfufeng
2022-08-03 18:56:00 +08:00
parent 1e27c6da97
commit b4328d1c6d
17 changed files with 544 additions and 207 deletions

View File

@@ -172,10 +172,11 @@ import java.util.*
}
}
/*ivCameraIcon?.setOnLongClickListener {
activity?.let { it1 -> CarcorderPreviewView.show(it1) }
ivCameraIcon?.setOnLongClickListener {
showSmallFragment()
// activity?.let { it1 -> CarcorderPreviewView.show(it1) }
true
}*/
}
ivToolsIcon?.setOnClickListener {
if (toolsViewFloat == null) {

View File

@@ -129,14 +129,26 @@ public class SteeringWheelView extends ConstraintLayout {
if (autopilotIV != null) {
Log.d(TAG, "autopilotIV != null");
if (state == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_RUNNING) {
if (AppIdentityModeUtils.isBus(FunctionBuildConfig.appIdentityMode)) {
// TODO
autopilotIV.setImageResource(R.drawable.bg_auto);
} else {
autopilotIV.setImageResource(R.drawable.bg_auto);
}
} else if (state == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_ENABLE) {
autopilotIV.setImageResource(R.drawable.bg_auto_nor);
if (AppIdentityModeUtils.isBus(FunctionBuildConfig.appIdentityMode)) {
// TODO
} else {
autopilotIV.setImageResource(R.drawable.bg_auto_nor);
}
} else if (state == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_DISABLE) {
autopilotIV.setImageResource(R.drawable.bg_auto_nor);
if (AppIdentityModeUtils.isBus(FunctionBuildConfig.appIdentityMode)) {
// TODO
} else {
autopilotIV.setImageResource(R.drawable.bg_auto_nor);
}
}
} else {
Log.d(TAG, "autopilotIV=null");