增加检测模块入口

This commit is contained in:
martindhy
2021-07-04 13:18:11 +08:00
parent 347f2cbc71
commit b1ec8a0d68
2 changed files with 20 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ import android.provider.Settings;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;
@@ -84,6 +85,8 @@ 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,6 +134,16 @@ 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);
// 避免事件穿透导致地图被滑动

View File

@@ -147,6 +147,13 @@
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"