diff --git a/OCH/mogo-och-sweeper/src/main/assets/map_style.data b/OCH/mogo-och-sweeper/src/main/assets/map_style.data new file mode 100644 index 0000000000..b200669659 Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/assets/map_style.data differ diff --git a/OCH/mogo-och-sweeper/src/main/assets/map_style_extra.data b/OCH/mogo-och-sweeper/src/main/assets/map_style_extra.data new file mode 100644 index 0000000000..7aa8fa7b45 Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/assets/map_style_extra.data differ diff --git a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/fragment/BaseSweeperTabFragment.java b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/fragment/BaseSweeperTabFragment.java index 925c3e4d92..86ab9b915e 100644 --- a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/fragment/BaseSweeperTabFragment.java +++ b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/fragment/BaseSweeperTabFragment.java @@ -61,13 +61,12 @@ public abstract class BaseSweeperTabFragment { // TODO: 2021/12/9 CallerHmiManager.INSTANCE.showToolsView(); }); - // mBadcaseBtn的visible显示逻辑在showBadcaseEntrance内处理 - mBadcaseBtn = findViewById(R.id.module_mogo_och_badcase_rl); - if (mBadcaseBtn != null) { - CallerDevaToolsManager.INSTANCE.initBadCase(mBadcaseBtn); + if (mCardBtn != null) { + CallerDevaToolsManager.INSTANCE.initBadCase(mCardBtn); } - - mAICollectBtn = findViewById(R.id.module_mogo_och_ai_collet_rl); if (mAICollectBtn != null) { CallerDevaToolsManager.INSTANCE.initAiCollect(mAICollectBtn); } diff --git a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/fragment/SweeperFragment.kt b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/fragment/SweeperFragment.kt index 2968b4a8ad..0377883e04 100644 --- a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/fragment/SweeperFragment.kt +++ b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/fragment/SweeperFragment.kt @@ -18,6 +18,7 @@ import com.mogo.och.sweeper.bean.SweeperSubTaskBean import com.mogo.och.sweeper.bean.SweeperSubTaskDetailBean import com.mogo.och.sweeper.constant.SubTaskTypeEnum import com.mogo.och.sweeper.constant.TaskStatusEnum +import com.mogo.och.sweeper.database.MyDataBase import com.mogo.och.sweeper.database.bean.WeltDataBean import com.mogo.och.sweeper.presenter.SweeperPresenter import com.mogo.och.sweeper.ui.adapter.TaskListAdapter @@ -28,7 +29,6 @@ import kotlinx.android.synthetic.main.fragment_och_sweeper.* import kotlinx.android.synthetic.main.sweeper_current_task_info.view.* import kotlinx.android.synthetic.main.sweeper_no_data_common_view.* import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.delay import kotlinx.coroutines.launch import java.math.BigDecimal import java.math.RoundingMode @@ -47,7 +47,6 @@ class SweeperFragment : BaseSweeperTabFragment {//子任务结束 - isFinished=false mCurrentSubPosition++ setSubTaskData() d(SceneConstant.M_SWEEPER + TAG, "END_SUBTASK mCurrentSubPosition:$mCurrentSubPosition") @@ -322,6 +324,11 @@ class SweeperFragment : BaseSweeperTabFragment private static final long WELT_DATA_INTERVAL_MILLIS = 2000L; // 贴边数据当前时间戳 private long mWeltDataCurrentTimeMillis; - //当前自动驾驶状态 - private int mCurrentAutopilotStatus; public SweeperPresenter(SweeperFragment view) { super(view); @@ -119,6 +117,7 @@ public class SweeperPresenter extends Presenter if (autopilotStatusInfo == null) return; CallerLogger.INSTANCE.d(M_SWEEPER + TAG, "onAutopilotStatusResponse state:" + autopilotStatusInfo.getState()); SweeperTaskModel.getInstance().setAutopilotState(autopilotStatusInfo.getState()); + ThreadUtils.runOnUiThread(() -> mView.startAutoBtn(autopilotStatusInfo.getState())); switch (autopilotStatusInfo.getState()) { case IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_DISABLE://不可自动驾驶 @@ -381,36 +380,6 @@ public class SweeperPresenter extends Presenter if (subTaskStatus == 1) { SweeperTaskModel.getInstance().subTaskStart(isFirst, isEnd, subTaskId, subTaskType); } -// AutopilotControlParameters parameters = new AutopilotControlParameters(); -// parameters.isSpeakVoice = true; -// parameters.routeID = 164; -// parameters.routeName = "bus5KM(小董)"; -// parameters.startName = PinYinUtil.getPinYinHeadChar("鹰眼270-13号路口起"); -// parameters.endName = PinYinUtil.getPinYinHeadChar("老干部演绎中心11223"); -// parameters.startLatLon = new AutopilotControlParameters -// .AutoPilotLonLat( 40.199247410363796,116.73367125257714 ); -// parameters.endLatLon = new AutopilotControlParameters -// .AutoPilotLonLat(40.20237, 116.74481 ); -// parameters.vehicleType = 10; -// if (parameters.autoPilotLine == null) { -// parameters.autoPilotLine = new AutopilotControlParameters.AutoPilotLine( -// 164, -// "/home/mogo/data/vehicle_monitor/MapEngine_data/track_record_data/JL/traj_164.csv", -// "", -// "/home/mogo/data/vehicle_monitor/MapEngine_data/track_record_data/JL/stop_164.txt", -// "", -// 1662021611000L, -// "金旅牌XML6606JEVY0", -// "", -// "", -// "", -// "", -// 0L); -// } -//// CallerLogger.INSTANCE.d( M_BUS + TAG, "开启自动驾驶====" + GsonUtil.jsonFromObject(parameters) -//// +" startLatLon="+currentStation.getName()+",endLatLon="+nextStation.getName()); -// CallerLogger.INSTANCE.d( M_BUS + TAG, "开启自动驾驶====" + GsonUtil.jsonFromObject(parameters)); -// CallerAutoPilotControlManager.INSTANCE.startAutoPilot(parameters); } /** @@ -458,4 +427,8 @@ public class SweeperPresenter extends Presenter public void setSubTakDetail(@NonNull SweeperSubTaskDetailBean subTaskDetailBean, SubTaskTypeEnum subTaskTypeEnum) { mView.setSubTakDetail(subTaskDetailBean, subTaskTypeEnum); } + //mock贴边数据 + private void weltData(MogoLocation location){ + + } } diff --git a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/util/SweeperMapAssetStyleUtil.java b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/util/SweeperMapAssetStyleUtil.java new file mode 100644 index 0000000000..5f9f1db28e --- /dev/null +++ b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/util/SweeperMapAssetStyleUtil.java @@ -0,0 +1,61 @@ +package com.mogo.och.sweeper.util; + + +import android.content.Context; + +import java.io.IOException; +import java.io.InputStream; + +/** + * @author donghongyu + * @date 12/18/20 5:37 PM + */ +public class SweeperMapAssetStyleUtil { + + public static byte[] getAssetsStyle(Context context,String fileName) { + byte[] buffer1 = null; + InputStream is1 = null; + try { + is1 = context.getResources().getAssets().open(fileName); //eg. over_view_style.data + int lenght1 = is1.available(); + buffer1 = new byte[lenght1]; + is1.read(buffer1); + } catch (IOException e) { + e.printStackTrace(); + } finally { + try { + if (is1 != null) { + is1.close(); + } + } catch (IOException e) { + e.printStackTrace(); + } + } + return buffer1; + } + + + public static byte[] getAssetsExtraStyle(Context context, String fileName) { + byte[] buffer1 = null; + InputStream is1 = null; + try { + is1 = context.getResources().getAssets().open(fileName); //eg. over_view_style_extra.data + int lenght1 = is1.available(); + buffer1 = new byte[lenght1]; + is1.read(buffer1); + } catch (IOException e) { + e.printStackTrace(); + } finally { + try { + if (is1 != null) { + is1.close(); + } + } catch (IOException e) { + e.printStackTrace(); + } + } + return buffer1; + } + + +} diff --git a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/SubTaskView.kt b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/SubTaskView.kt index 99a5491869..a3d6374066 100644 --- a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/SubTaskView.kt +++ b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/SubTaskView.kt @@ -6,6 +6,7 @@ import android.util.AttributeSet import android.view.LayoutInflater import android.view.View import androidx.constraintlayout.widget.ConstraintLayout +import com.mogo.och.common.module.utils.DateTimeUtil import com.mogo.och.sweeper.R import com.mogo.och.sweeper.bean.SubInfo import kotlinx.android.synthetic.main.sweeper_subtask_view.view.* @@ -36,12 +37,13 @@ class SubTaskView : ConstraintLayout { } else { "${taskInfo.mileage / 1000F}千米" } -// var timeSpent=if(DateTimeUtil.secondsToHourStr(taskInfo.timeSpent)!=""){ -// "${DateTimeUtil.secondsToHourStr(taskInfo.timeSpent/1000)}小时${DateTimeUtil.secondsToMinuteStr(taskInfo.timeSpent/1000)}分钟" -// }else{ -// "${DateTimeUtil.secondsToMinuteStr(taskInfo.timeSpent/1000)}分钟" -// } - tvSubTaskDesc.text = "全程约${mileage},预计耗时${taskInfo.timeSpent}分钟" + val time=taskInfo.timeSpent.toLong() + var timeSpent=if(DateTimeUtil.secondsToHourStr(time)!=""){ + "${DateTimeUtil.secondsToHourStr(time)}小时${DateTimeUtil.secondsToMinuteStr(time)}分钟" + }else{ + "${DateTimeUtil.secondsToMinuteStr(time)}分钟" + } + tvSubTaskDesc.text = "全程约${mileage},预计耗时$timeSpent" tvSubTaskName.setTextColor(if (isSelect) Color.parseColor("#3BD2FF") else Color.parseColor("#FFFFFF")) if (isSelect) { ivSubTaskSelect.visibility = View.VISIBLE diff --git a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/SweeperCurrentTaskInfoView.kt b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/SweeperCurrentTaskInfoView.kt index d94b6c8f01..7501f1e0dd 100644 --- a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/SweeperCurrentTaskInfoView.kt +++ b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/SweeperCurrentTaskInfoView.kt @@ -30,6 +30,8 @@ class SweeperCurrentTaskInfoView : ConstraintLayout { private var listTask: List? = null private var mSubTaskType: SubTaskTypeEnum = SubTaskTypeEnum.AUTOPILOT_SUBTYPE private var mSubTaskStatus: Int = 1 + //当前自动驾驶状态 + private val mCurrentAutopilotStatus = 0 constructor(context: Context) : super(context) {} constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) { @@ -52,7 +54,9 @@ class SweeperCurrentTaskInfoView : ConstraintLayout { ToastUtils.showLong("人工子任务无轨迹,无法启动自驾") return@setOnClickListener } - presenter?.startAutopilot() + if (mCurrentAutopilotStatus!=IMoGoAutopilotStatusListener.STATUS_PARALLEL_DRIVING){ + presenter?.startAutopilot() + } } } } @@ -118,24 +122,20 @@ class SweeperCurrentTaskInfoView : ConstraintLayout { fun setStartAutoBtn(autopilotState: Int) { when (autopilotState) { IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_DISABLE -> { - tvStartAuto.isSelected = false - tvStartAuto.isClickable = false - tvStartAuto.text="不可自动驾驶" + tvStartAuto.text="自动驾驶" + tvStartAuto.isSelected=false } IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_ENABLE -> { - tvStartAuto.isSelected = true - tvStartAuto.isClickable = true - tvStartAuto.text="人工驾驶" + tvStartAuto.text="自动驾驶" + tvStartAuto.isSelected=false } IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_RUNNING -> { - tvStartAuto.isSelected = true - tvStartAuto.isClickable = true tvStartAuto.text="自动驾驶" + tvStartAuto.isSelected=true } IMoGoAutopilotStatusListener.STATUS_PARALLEL_DRIVING -> { - tvStartAuto.isSelected = false - tvStartAuto.isClickable = false tvStartAuto.text="平行驾驶" + tvStartAuto.isSelected=true } } } diff --git a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/TurnSignalView.kt b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/TurnSignalView.kt index bcc8d36aed..57394c2ce8 100644 --- a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/TurnSignalView.kt +++ b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/TurnSignalView.kt @@ -68,6 +68,8 @@ class TurnSignalView : LinearLayout { else -> { //消失 leftSelectImage.clearAnimation() rightSelectImage.clearAnimation() + leftSelectImage.visibility = View.GONE + rightSelectImage.visibility = View.GONE } } } diff --git a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/WeltMapOverView.kt b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/WeltMapOverView.kt index 49a7075e0d..52b34d2a28 100644 --- a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/WeltMapOverView.kt +++ b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/WeltMapOverView.kt @@ -18,6 +18,7 @@ import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant import com.mogo.och.sweeper.R import com.mogo.och.sweeper.database.bean.WeltDataBean +import com.mogo.och.sweeper.util.SweeperMapAssetStyleUtil import kotlinx.android.synthetic.main.sweeper_welt_map_overview.view.* /** @@ -74,8 +75,24 @@ class WeltMapOverView : ConstraintLayout, IMoGoChassisLocationGCJ02Listener { uiSettings?.setAllGesturesEnabled(false) // 所有手势 uiSettings?.isMyLocationButtonEnabled = false // 显示默认的定位按钮 uiSettings?.setLogoBottomMargin(-150) //设置Logo下边界距离屏幕底部的边距,设置为负值即可 + // 加载自定义样式 + val customMapStyleOptions = CustomMapStyleOptions() + .setEnable(true) + .setStyleData(SweeperMapAssetStyleUtil.getAssetsStyle(context, "map_style.data")) + .setStyleExtraData(SweeperMapAssetStyleUtil.getAssetsExtraStyle(context, "map_style_extra.data")) + // 设置自定义样式 + mAMap?.setCustomMapStyle(customMapStyleOptions) + //mAMap?.moveCamera(CameraUpdateFactory.zoomTo(15f)) mAMap?.setOnMapLoadedListener(AMap.OnMapLoadedListener { + //mAMap?.moveCamera(CameraUpdateFactory.zoomTo(15f)) CallerLogger.d(SceneConstant.M_SWEEPER + TAG, "WeltView---onMapLoaded") + // 加载自定义样式 + val customMapStyleOptions = CustomMapStyleOptions() + .setEnable(true) + .setStyleData(SweeperMapAssetStyleUtil.getAssetsStyle(context, "map_style.data")) + .setStyleExtraData(SweeperMapAssetStyleUtil.getAssetsExtraStyle(context, "map_style_extra.data")) + // 设置自定义样式 + mAMap?.setCustomMapStyle(customMapStyleOptions) // 实时路况图层关闭,必须添加在loaded结束之后,其他位置不生效 mAMap?.isTrafficEnabled = false mAMap?.showBuildings(true) @@ -148,10 +165,10 @@ class WeltMapOverView : ConstraintLayout, IMoGoChassisLocationGCJ02Listener { * 绘制起点和终点的marker */ fun drawStartAndEndMarker(startPoint: LatLng, endPoint: LatLng) { - val startMarker = mAMap?.addMarker(MarkerOptions().icon(BitmapDescriptorFactory.fromResource(R.drawable.start_maker_icon))) + val startMarker = mAMap?.addMarker(MarkerOptions().icon(BitmapDescriptorFactory.fromResource(R.drawable.sweeper_big_start_maker_icon))) startMarker?.position = startPoint mLineMarkers.add(startMarker) - val endMarker = mAMap?.addMarker(MarkerOptions().icon(BitmapDescriptorFactory.fromResource(R.drawable.end_maker_icon))) + val endMarker = mAMap?.addMarker(MarkerOptions().icon(BitmapDescriptorFactory.fromResource(R.drawable.sweeper_big_end_maker_icon))) endMarker?.position = endPoint mLineMarkers.add(endMarker) } diff --git a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/WeltSmallMapView.kt b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/WeltSmallMapView.kt index 141602f106..8525d12f79 100644 --- a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/WeltSmallMapView.kt +++ b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/WeltSmallMapView.kt @@ -3,7 +3,6 @@ package com.mogo.och.sweeper.view import android.content.Context import android.graphics.Color import android.os.Bundle -import android.os.Looper import android.util.AttributeSet import android.view.LayoutInflater import android.view.View @@ -17,10 +16,10 @@ import com.mogo.eagle.core.function.api.autopilot.IMoGoChassisLocationGCJ02Liste import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationGCJ02ListenerManager import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger.d import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant -import com.mogo.eagle.core.utilcode.util.UiThreadHandler import com.mogo.och.common.module.utils.CoordinateCalculateRouteUtil import com.mogo.och.sweeper.R import com.mogo.och.sweeper.database.bean.WeltDataBean +import com.mogo.och.sweeper.util.SweeperMapAssetStyleUtil import kotlinx.android.synthetic.main.sweeper_welt_small_map_view.view.* /** @@ -34,7 +33,6 @@ class WeltSmallMapView : ConstraintLayout, IMoGoChassisLocationGCJ02Listener { private var mPolyline: Polyline? = null private var colorList: MutableList = mutableListOf() private val mLineMarkers: MutableList = mutableListOf() - private var mFirst: Boolean = false //清扫车任务地图 private val TAG = "WeltMapView" @@ -107,8 +105,22 @@ class WeltSmallMapView : ConstraintLayout, IMoGoChassisLocationGCJ02Listener { uiSettings?.setAllGesturesEnabled(false) // 所有手势 uiSettings?.isMyLocationButtonEnabled = false // 显示默认的定位按钮 uiSettings?.setLogoBottomMargin(-150) //设置Logo下边界距离屏幕底部的边距,设置为负值即可 + // 加载自定义样式 + val customMapStyleOptions = CustomMapStyleOptions() + .setEnable(true) + .setStyleData(SweeperMapAssetStyleUtil.getAssetsStyle(context, "map_style.data")) + .setStyleExtraData(SweeperMapAssetStyleUtil.getAssetsExtraStyle(context, "map_style_extra.data")) + // 设置自定义样式 + mAMap?.setCustomMapStyle(customMapStyleOptions) mAMap?.setOnMapLoadedListener(AMap.OnMapLoadedListener { d(SceneConstant.M_SWEEPER + TAG, "WeltView---onMapLoaded") + // 加载自定义样式 + val customMapStyleOptions = CustomMapStyleOptions() + .setEnable(true) + .setStyleData(SweeperMapAssetStyleUtil.getAssetsStyle(context, "map_style.data")) + .setStyleExtraData(SweeperMapAssetStyleUtil.getAssetsExtraStyle(context, "map_style_extra.data")) + // 设置自定义样式 + mAMap?.setCustomMapStyle(customMapStyleOptions) mAMap?.setPointToCenter(sweeperSmallTextureMapView.width / 2, sweeperSmallTextureMapView.height / 2) }) } @@ -163,13 +175,14 @@ class WeltSmallMapView : ConstraintLayout, IMoGoChassisLocationGCJ02Listener { mLineMarkers[i]?.remove() } mLineMarkers.clear() - val startMarker = mAMap?.addMarker(MarkerOptions().icon(BitmapDescriptorFactory.fromResource(R.drawable.start_maker_icon))) + val startMarker = mAMap?.addMarker(MarkerOptions().icon(BitmapDescriptorFactory.fromResource(R.drawable.sweeper_small_start_marker_icon))) startMarker?.position = startPoint mLineMarkers.add(startMarker) - val endMarker = mAMap?.addMarker(MarkerOptions().icon(BitmapDescriptorFactory.fromResource(R.drawable.end_maker_icon))) + val endMarker = mAMap?.addMarker(MarkerOptions().icon(BitmapDescriptorFactory.fromResource(R.drawable.sweeper_small_end_marker_icon))) endMarker?.position = endPoint mLineMarkers.add(endMarker) } + /** * 清除所有标记和路线 */ @@ -197,25 +210,27 @@ class WeltSmallMapView : ConstraintLayout, IMoGoChassisLocationGCJ02Listener { /** * 设置贴边数据 */ - fun setWeltData(weltData: MutableList,isWeltData: Boolean,distance:String) { + fun setWeltData(weltData: MutableList, isWeltData: Boolean, distance: String) { this.mWeltData = weltData for (i in mWeltData.indices) { mCoordinatesLatLng.add(CoordinateCalculateRouteUtil.coordinateConverterWgsToGcj(context, mWeltData[i].locLon, mWeltData[i].locLat)) } - taskWeltDistanceTv.text="贴边:${distance}cm" + taskWeltDistanceTv.text = "贴边:${distance}cm" //if (!mFirst&&isWeltData) { // showOrHiddenWelt(true) // mFirst = true //} } + /** * 设置任务进度 */ - fun setTaskProgress(progress:String?){ - taskWeltDistanceTv.visibility=View.VISIBLE - taskProgressTv.visibility=View.VISIBLE - taskProgressTv.text=progress + fun setTaskProgress(progress: String?) { + taskWeltDistanceTv.visibility = View.VISIBLE + taskProgressTv.visibility = View.VISIBLE + taskProgressTv.text = progress } + fun onCreateView(savedInstanceState: Bundle?) { sweeperSmallTextureMapView?.onCreate(savedInstanceState) } diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/bg_shape_work_mode.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/bg_shape_work_mode.png new file mode 100644 index 0000000000..1140726f3f Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/bg_shape_work_mode.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/end_maker_icon.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_big_end_maker_icon.png similarity index 100% rename from OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/end_maker_icon.png rename to OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_big_end_maker_icon.png diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/start_maker_icon.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_big_start_maker_icon.png similarity index 100% rename from OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/start_maker_icon.png rename to OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_big_start_maker_icon.png diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_card_normal.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_card_normal.png new file mode 100755 index 0000000000..eb0a354b95 Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_card_normal.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_card_pressed.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_card_pressed.png new file mode 100755 index 0000000000..38f5009f85 Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_card_pressed.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_collect_normal.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_collect_normal.png new file mode 100755 index 0000000000..81b6cc6f6f Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_collect_normal.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_collect_pressed.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_collect_pressed.png new file mode 100755 index 0000000000..781764c62e Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_collect_pressed.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_line.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_line.png new file mode 100755 index 0000000000..570b54f1be Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_line.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_setting_normal.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_setting_normal.png new file mode 100755 index 0000000000..16af31581b Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_setting_normal.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_setting_pressed.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_setting_pressed.png new file mode 100755 index 0000000000..e4ec724aaa Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_setting_pressed.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_small_end_marker_icon.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_small_end_marker_icon.png new file mode 100644 index 0000000000..44eeb23a8f Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_small_end_marker_icon.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_small_start_marker_icon.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_small_start_marker_icon.png new file mode 100644 index 0000000000..b7cbac3f43 Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_small_start_marker_icon.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_start_auto_not_running.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_start_auto_not_running.png new file mode 100755 index 0000000000..76efae02cf Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_start_auto_not_running.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_start_auto_running.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_start_auto_running.png new file mode 100755 index 0000000000..bef6342f64 Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_start_auto_running.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_switch_map_big_normal.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_switch_map_big_normal.png new file mode 100755 index 0000000000..6989ed7a51 Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_switch_map_big_normal.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_switch_map_big_pressed.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_switch_map_big_pressed.png new file mode 100755 index 0000000000..dbeae7fe2e Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_switch_map_big_pressed.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_switch_map_small_normal.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_switch_map_small_normal.png new file mode 100644 index 0000000000..e5de70fe46 Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_switch_map_small_normal.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_switch_map_small_pressed.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_switch_map_small_pressed.png new file mode 100644 index 0000000000..f9aaaf6351 Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_switch_map_small_pressed.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_task_not_working.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_task_not_working.png new file mode 100755 index 0000000000..45af8b7997 Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_task_not_working.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_task_working.png b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_task_working.png new file mode 100755 index 0000000000..f5bd232a66 Binary files /dev/null and b/OCH/mogo-och-sweeper/src/main/res/drawable-xhdpi/sweeper_task_working.png differ diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_task_panel.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_task_panel.xml new file mode 100644 index 0000000000..3a6f72848e --- /dev/null +++ b/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_task_panel.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_work_mode.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_welt_panel.xml similarity index 74% rename from OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_work_mode.xml rename to OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_welt_panel.xml index b451082e68..a6c900aa78 100644 --- a/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_work_mode.xml +++ b/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_welt_panel.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_bg_waring_limiting_velocity.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_bg_waring_limiting_velocity.xml index aea70cad45..fe190c59ee 100644 --- a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_bg_waring_limiting_velocity.xml +++ b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_bg_waring_limiting_velocity.xml @@ -3,18 +3,16 @@ - - + android:width="52dp" + android:height="52dp" /> diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_collect_selector.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_collect_selector.xml new file mode 100644 index 0000000000..8ed41c58fb --- /dev/null +++ b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_collect_selector.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_setting_selector.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_setting_selector.xml new file mode 100644 index 0000000000..a6d5c8df82 --- /dev/null +++ b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_setting_selector.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_start_auto_btn.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_start_auto_btn.xml index 3bdae39ba5..735fb4736b 100644 --- a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_start_auto_btn.xml +++ b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_start_auto_btn.xml @@ -1,5 +1,5 @@ - - + + \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_start_auto_not_selected.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_start_auto_not_selected.xml deleted file mode 100644 index 10ebc26c66..0000000000 --- a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_start_auto_not_selected.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_start_auto_selected.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_start_auto_selected.xml deleted file mode 100644 index 405245c0b9..0000000000 --- a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_start_auto_selected.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_switch_card_selector.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_switch_card_selector.xml new file mode 100644 index 0000000000..70950d6361 --- /dev/null +++ b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_switch_card_selector.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_switch_map_big_selector.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_switch_map_big_selector.xml new file mode 100644 index 0000000000..9acad62868 --- /dev/null +++ b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_switch_map_big_selector.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_switch_map_small_selector.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_switch_map_small_selector.xml new file mode 100644 index 0000000000..3a4b699d93 --- /dev/null +++ b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_switch_map_small_selector.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_task_btn.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_task_btn.xml index 6541e1bc66..01ea942bfc 100644 --- a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_task_btn.xml +++ b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_task_btn.xml @@ -1,5 +1,5 @@ - - + + \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_task_not_selected.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_task_not_selected.xml deleted file mode 100644 index 2ae1bc8e21..0000000000 --- a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_task_not_selected.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_task_selected.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_task_selected.xml deleted file mode 100644 index 1d0a08efbb..0000000000 --- a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_task_selected.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/layout/fragment_och_sweeper.xml b/OCH/mogo-och-sweeper/src/main/res/layout/fragment_och_sweeper.xml index ba1267bdd7..51979ce459 100644 --- a/OCH/mogo-och-sweeper/src/main/res/layout/fragment_och_sweeper.xml +++ b/OCH/mogo-och-sweeper/src/main/res/layout/fragment_och_sweeper.xml @@ -2,7 +2,7 @@ + android:visibility="gone" /> - + android:visibility="visible" + app:bgColor="#00000000" + app:blurRadius="@dimen/dp_28" + app:shadowColor="#80121526" + app:shadowRadius="@dimen/dp_30" + app:shadow_position="outer" + app:xOffset="0dp" + app:yOffset="0dp"> + android:visibility="gone" + android:background="@drawable/bg_shape_task_panel"> - + \ No newline at end of file diff --git a/OCH/mogo-och-sweeper/src/main/res/layout/sweeper_base_fragment.xml b/OCH/mogo-och-sweeper/src/main/res/layout/sweeper_base_fragment.xml index cc13765415..ad9534b576 100644 --- a/OCH/mogo-och-sweeper/src/main/res/layout/sweeper_base_fragment.xml +++ b/OCH/mogo-och-sweeper/src/main/res/layout/sweeper_base_fragment.xml @@ -84,106 +84,65 @@ android:id="@+id/module_mogo_och_task_list_container" android:layout_width="wrap_content" android:layout_height="0dp" - android:layout_marginStart="@dimen/dp_41" - android:layout_marginBottom="@dimen/dp_30" - app:layout_constraintBottom_toTopOf="@+id/sweeper_switch_model_layout" + android:layout_marginLeft="@dimen/dp_13" + app:layout_constraintBottom_toTopOf="@+id/sweeper_switch_model_icon" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@id/sweeper_arc" - app:layout_goneMarginTop="@dimen/module_mogo_och_station_panel_container_margin_top_no_call" /> + app:layout_goneMarginTop="@dimen/module_mogo_och_station_panel_container_margin_top_no_call" + android:layout_marginTop="-20dp"/> - + app:layout_constraintEnd_toEndOf="parent" + android:layout_marginEnd="@dimen/dp_36" + android:layout_marginTop="@dimen/dp_27"> - - + app:layout_constraintStart_toStartOf="parent" /> - - - - - + app:layout_constraintStart_toEndOf="@+id/sweeper_switch_model_icon" /> - - - - + app:layout_constraintStart_toEndOf="@+id/sweeper_setting_model_icon" /> - - - - - - - - + app:layout_constraintStart_toEndOf="@+id/sweeper_collect_model_icon" /> +