[add] 检测入口添加
This commit is contained in:
@@ -94,6 +94,8 @@ import com.mogo.utils.logger.Logger;
|
||||
import com.mogo.utils.storage.SharedPrefsMgr;
|
||||
import com.zhidao.manager.ts.TsThreshold;
|
||||
|
||||
import org.w3c.dom.Text;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
@@ -242,6 +244,7 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
|
||||
private final AdasNoticeHelper adasNoticeHelper = new AdasNoticeHelper();
|
||||
private final CameraLiveNoticeHelper mCameraLiveNoticeHelper = new CameraLiveNoticeHelper();
|
||||
protected TextView jumpCheck;
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
@@ -373,7 +376,7 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
if (DebugConfig.isDebug()) {
|
||||
mouduleArc.setLongClickable(true);
|
||||
mouduleArc.setOnLongClickListener(v -> {
|
||||
Log.d(TAG,"长按显示状态工具栏");
|
||||
Log.d(TAG, "长按显示状态工具栏");
|
||||
Intent intent = new Intent();
|
||||
intent.putExtra("oper", 52);
|
||||
MogoApisHandler.getInstance().getApis().getIntentManagerApi().invoke(MogoReceiver.ACTION_MOCK, intent);
|
||||
@@ -395,6 +398,15 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
enterVrMode();
|
||||
localIsVrMode = true;
|
||||
}
|
||||
// //检测入口
|
||||
jumpCheck = (TextView) findViewById(R.id.module_ext_enter_check);
|
||||
jumpCheck.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
// 启动检测页面
|
||||
MogoApisHandler.getInstance().getApis().getCheckProvider().startCheckActivity(getContext());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private int debugPanelClickCount = 0;
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<size
|
||||
android:width="@dimen/dp_128"
|
||||
android:height="@dimen/dp_128" />
|
||||
//填充
|
||||
<solid android:color="@color/module_switch_map_bg" />
|
||||
//描边
|
||||
<stroke
|
||||
android:width="2px"
|
||||
android:color="@color/module_switch_map_bg" />
|
||||
|
||||
</shape>
|
||||
@@ -70,19 +70,19 @@
|
||||
android:id="@+id/module_switch_model_icon"
|
||||
android:layout_width="@dimen/module_switch_image"
|
||||
android:layout_height="@dimen/module_switch_image"
|
||||
android:paddingLeft="@dimen/module_switch_margin_left"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:paddingLeft="@dimen/module_switch_margin_left"
|
||||
android:src="@drawable/module_switch_map_angle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/module_switch_model_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="@dimen/module_switch_margin_left"
|
||||
android:textSize="@dimen/module_switch_text_size"
|
||||
android:gravity="right|center"
|
||||
android:paddingLeft="@dimen/module_switch_margin_left"
|
||||
android:text="@string/module_map_model_normal"
|
||||
android:textColor="@color/module_ext_color_voice_text" />
|
||||
android:textColor="@color/module_ext_color_voice_text"
|
||||
android:textSize="@dimen/module_switch_text_size" />
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
@@ -319,6 +319,21 @@
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<!--车辆检测入口-->
|
||||
<TextView
|
||||
android:id="@+id/module_ext_enter_check"
|
||||
android:layout_width="@dimen/dp_128"
|
||||
android:layout_height="@dimen/dp_128"
|
||||
android:layout_marginRight="@dimen/dp_33"
|
||||
android:layout_marginBottom="@dimen/dp_476"
|
||||
android:background="@drawable/module_ext_check"
|
||||
android:gravity="center"
|
||||
android:text="检测"
|
||||
android:textColor="#fff"
|
||||
android:textSize="@dimen/module_ext_enter_vr_mode_text_size"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/module_ext_enter_vr_mode"
|
||||
android:layout_width="@dimen/module_ext_operation_panel_share_width"
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<item name="module_ext_enter_check" type="id" />
|
||||
</resources>
|
||||
@@ -82,8 +82,6 @@ public class MainActivity extends MvpActivity<MainView, MainPresenter> implement
|
||||
protected ImageView mWarningRight;
|
||||
protected ImageView mWarningBottom;
|
||||
|
||||
protected Button mBtnJumpCheckPage;
|
||||
|
||||
protected ConstraintLayout clSpecialEffect;
|
||||
|
||||
private boolean isFirst = false;
|
||||
@@ -131,16 +129,6 @@ public class MainActivity extends MvpActivity<MainView, MainPresenter> implement
|
||||
mWarningRight = findViewById(R.id.warning_right);
|
||||
mWarningBottom = findViewById(R.id.warning_bottom);
|
||||
|
||||
// TODO 临时入口
|
||||
mBtnJumpCheckPage = findViewById(R.id.btnJumpCheckPage);
|
||||
mBtnJumpCheckPage.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
// 启动检测页面
|
||||
MogoApisHandler.getInstance().getApis().getCheckProvider().startCheckActivity(getContext());
|
||||
}
|
||||
});
|
||||
|
||||
clSpecialEffect = findViewById(R.id.cl_special_effect);
|
||||
|
||||
// 避免事件穿透导致地图被滑动
|
||||
|
||||
@@ -147,13 +147,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<!-- TODO 这里是临时入口 -->
|
||||
<Button
|
||||
android:id="@+id/btnJumpCheckPage"
|
||||
android:text="自动驾驶体检"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<!--冷启动过渡Logo-->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/module_main_id_cover_up"
|
||||
|
||||
Reference in New Issue
Block a user