[清扫车]消息盒子图标添加
This commit is contained in:
@@ -82,6 +82,7 @@ public abstract class BaseSweeperTabFragment<V extends IView, P extends Presente
|
||||
//任务作业全览图
|
||||
private WeltMapOverViewFragment mWeltMapOverViewFragment;
|
||||
private FrameLayout mFlWeltMapOverView;
|
||||
private ImageView mMessageBox;
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
@@ -108,6 +109,7 @@ public abstract class BaseSweeperTabFragment<V extends IView, P extends Presente
|
||||
mMapWeltView = findViewById(R.id.sweeper_task_welt_small_map);
|
||||
mMapSwitchToBig = findViewById(R.id.sweeper_switch_to_big);
|
||||
mFlWeltMapOverView = findViewById(R.id.sweeper_welt_map_overview);
|
||||
mMessageBox = findViewById(R.id.sweeper_message_box_iv);
|
||||
initListener();
|
||||
//设置左下角四个按钮监听事件
|
||||
setBottomBtnListener();
|
||||
@@ -147,7 +149,7 @@ public abstract class BaseSweeperTabFragment<V extends IView, P extends Presente
|
||||
mapBizView.onCreate(savedInstanceState);
|
||||
mMapWeltView.onCreateView(savedInstanceState);
|
||||
//mock 贴边数据
|
||||
setWeltData();
|
||||
//setWeltData();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -187,6 +189,7 @@ public abstract class BaseSweeperTabFragment<V extends IView, P extends Presente
|
||||
mCloseNavIcon.setOnClickListener(this);
|
||||
mRefreshNavi.setOnClickListener(this);
|
||||
mMapSwitchToBig.setOnClickListener(this);
|
||||
mMessageBox.setOnClickListener(this);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -335,7 +338,9 @@ public abstract class BaseSweeperTabFragment<V extends IView, P extends Presente
|
||||
refreshNavi();
|
||||
} else if (id == R.id.sweeper_switch_to_big) {
|
||||
showOrHideOverMapViewFragment(true);
|
||||
setWeltData();
|
||||
//setWeltData();
|
||||
}else if(id==R.id.sweeper_message_box_iv){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/icon_message_box" android:state_pressed="false"/>
|
||||
<item android:drawable="@drawable/icon_message_box_pressed" android:state_pressed="true"/>
|
||||
</selector>
|
||||
@@ -94,14 +94,15 @@
|
||||
android:layout_width="@dimen/dp_711"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_27"
|
||||
android:layout_marginEnd="@dimen/dp_36"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:roundLayoutRadius="@dimen/dp_20"
|
||||
android:layout_marginEnd="@dimen/dp_36">
|
||||
app:roundLayoutRadius="@dimen/dp_20">
|
||||
|
||||
<com.mogo.och.sweeper.view.WeltSmallMapView
|
||||
android:id="@+id/sweeper_task_welt_small_map"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
android:layout_height="wrap_content" />
|
||||
</com.mogo.och.common.module.wigets.OCHRoundConstraintLayout>
|
||||
<!--切换地图远近事件-->
|
||||
<LinearLayout
|
||||
@@ -181,6 +182,16 @@
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ai_collect_selector" />
|
||||
</FrameLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sweeper_message_box_iv"
|
||||
android:layout_width="@dimen/dp_169"
|
||||
android:layout_height="@dimen/dp_169"
|
||||
android:layout_marginEnd="@dimen/module_mogo_och_margin_right"
|
||||
android:layout_marginBottom="@dimen/module_mogo_och_margin_bottom"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:src="@drawable/sweeper_message_box"/>
|
||||
<!--清扫手动驾驶路线导航-->
|
||||
<FrameLayout
|
||||
android:id="@+id/module_mogo_och_navi_panel_container"
|
||||
@@ -211,13 +222,14 @@
|
||||
android:src="@drawable/sweeper_navi_refresh"
|
||||
app:layout_constraintEnd_toEndOf="@+id/module_mogo_och_navi_panel_container"
|
||||
app:layout_constraintTop_toTopOf="@+id/module_mogo_och_navi_panel_container" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/sweeper_welt_map_overview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible"
|
||||
/>
|
||||
tools:visibility="visible" />
|
||||
|
||||
<androidx.constraintlayout.widget.Group
|
||||
android:id="@+id/group_navi_panel"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
Reference in New Issue
Block a user