[6.5.1_exam]删除无用代码
This commit is contained in:
@@ -1,49 +0,0 @@
|
||||
package com.mogo.eagle.core.function.hmi.ui.setting
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import android.view.LayoutInflater
|
||||
import androidx.constraintlayout.widget.ConstraintLayout
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager.sendPlanningCmd
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager.sendPlanningLineChangeCmd
|
||||
import com.mogo.eagle.core.function.hmi.R
|
||||
import kotlinx.android.synthetic.main.view_exam_setting.view.mOverTakeBtn
|
||||
import kotlinx.android.synthetic.main.view_exam_setting.view.mStartCarBtn
|
||||
import kotlinx.android.synthetic.main.view_exam_setting.view.mStopCarBtn
|
||||
|
||||
class ExamSettingView @JvmOverloads constructor(
|
||||
context: Context,
|
||||
attrs: AttributeSet? = null,
|
||||
defStyleAttr: Int = 0
|
||||
) : ConstraintLayout(context, attrs, defStyleAttr) {
|
||||
|
||||
companion object {
|
||||
const val TAG = "ExamSettingView"
|
||||
}
|
||||
|
||||
init {
|
||||
LayoutInflater.from(context).inflate(R.layout.view_exam_setting, this, true)
|
||||
initView()
|
||||
}
|
||||
|
||||
private fun initView(){
|
||||
initBusView()
|
||||
}
|
||||
|
||||
private fun initBusView(){
|
||||
//停车
|
||||
mStopCarBtn.setOnClickListener {
|
||||
sendPlanningCmd(1)
|
||||
}
|
||||
//出发
|
||||
mStartCarBtn.setOnClickListener {
|
||||
sendPlanningCmd(2)
|
||||
}
|
||||
//超车
|
||||
mOverTakeBtn.setOnClickListener {
|
||||
sendPlanningLineChangeCmd(3)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/dp_800"
|
||||
android:layout_height="@dimen/dp_1100"
|
||||
android:background="@color/color_D4D8DC"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
|
||||
<Button
|
||||
android:id="@+id/mStopCarBtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toLeftOf="@id/mStartCarBtn"
|
||||
android:text="停车"
|
||||
android:textSize="@dimen/sp_30"
|
||||
android:layout_margin="@dimen/dp_20"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/mStartCarBtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/mStopCarBtn"
|
||||
app:layout_constraintRight_toLeftOf="@id/mOverTakeBtn"
|
||||
android:text="出发"
|
||||
android:textSize="@dimen/sp_30"
|
||||
android:layout_margin="@dimen/dp_20"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/mOverTakeBtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/mStartCarBtn"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:text="超车"
|
||||
android:textSize="@dimen/sp_30"
|
||||
android:layout_margin="@dimen/dp_20"
|
||||
/>
|
||||
|
||||
<com.mogo.eagle.core.function.hmi.ui.setting.SeatPressureSettingView
|
||||
android:id="@+id/seatPressureSettingView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/mStartCarBtn"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:layout_margin="@dimen/dp_20"
|
||||
/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in New Issue
Block a user