diff --git a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_base_fragment.xml b/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_base_fragment.xml index 523a6fc82d..fd30dd553b 100644 --- a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_base_fragment.xml +++ b/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_base_fragment.xml @@ -8,7 +8,7 @@ android:id="@+id/steering_wheel" android:layout_width="@dimen/dp_300" android:layout_height="@dimen/dp_300" - android:layout_marginLeft="@dimen/dp_90" + android:layout_marginLeft="@dimen/dp_50" android:layout_marginTop="@dimen/dp_112" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" /> @@ -20,24 +20,29 @@ android:layout_marginLeft="@dimen/bus_p_curent_station_panel_margin" android:layout_marginTop="@dimen/dp_112" android:scaleType="fitXY" - android:visibility="invisible" + android:visibility="gone" android:layout_gravity="center_horizontal" android:src="@drawable/bus_p_un_auto_nor" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent"/> - + app:bgColor="@color/bus_p_panel_cur_station_panel_color" + app:blurRadius="@dimen/dp_12" + app:shadowRadius="@dimen/dp_20" + app:shadowColor="@color/bus_p_panel_edge_shadow" + app:xOffset="0px" + app:yOffset="0px"> + + + 638px 316px 50px + 38px 44px 55px 40px diff --git a/OCH/mogo-och-bus-passenger/src/main/res/values/colors.xml b/OCH/mogo-och-bus-passenger/src/main/res/values/colors.xml index 06035c5d4b..8e63faf83d 100644 --- a/OCH/mogo-och-bus-passenger/src/main/res/values/colors.xml +++ b/OCH/mogo-och-bus-passenger/src/main/res/values/colors.xml @@ -26,4 +26,5 @@ #E6E9EFFC #33394C63 #2D3E5F + #33394C63 \ No newline at end of file diff --git a/OCH/mogo-och-bus-passenger/src/main/res/values/dimens.xml b/OCH/mogo-och-bus-passenger/src/main/res/values/dimens.xml index 6ad2fdc16a..c32aec9eff 100644 --- a/OCH/mogo-och-bus-passenger/src/main/res/values/dimens.xml +++ b/OCH/mogo-och-bus-passenger/src/main/res/values/dimens.xml @@ -50,7 +50,8 @@ 638px 316px - 50px + 38px + 38px 44px 55px 40px diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BaseBusTabFragment.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BaseBusTabFragment.java index c7f2778798..c6560e82f9 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BaseBusTabFragment.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BaseBusTabFragment.java @@ -11,6 +11,7 @@ import android.view.View; import android.view.animation.LinearInterpolator; import android.widget.FrameLayout; import android.widget.ImageView; +import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; @@ -77,8 +78,7 @@ public abstract class BaseBusTabFragment //远景和中景的切换 private ImageView mSwitchMapModeImage; - private FrameLayout mSwitchMapModeLayout; - private TextView mSwitchText; + private LinearLayout mSwitchMapModeLayout; private ObjectAnimator autopilotLoadingAnimator; @@ -123,7 +123,7 @@ public abstract class BaseBusTabFragment mSwitchMapModeLayout = findViewById(R.id.bus_switch_model_layout); mSwitchMapModeImage = findViewById(R.id.bus_switch_model_icon); - mSwitchText = findViewById(R.id.bus_switch_model_text); + updateSwitchMapIcon(); mSwitchMapModeLayout.setOnClickListener(new OnPreventFastClickListener() { @@ -133,11 +133,11 @@ public abstract class BaseBusTabFragment if (MogoMapUIController.getInstance().getCurrentMapVisualAngle().isLongSight()) { MogoMarkerManager.getInstance(AbsMogoApplication.getApp()).visibleAllMarkers(); MogoMapUIController.getInstance().changeMapVisualAngle(VisualAngleMode.MODE_MEDIUM_SIGHT, null); - mSwitchText.setText(R.string.bus_map_model_normal); + mSwitchMapModeImage.setImageResource(R.drawable.bus_switch_map_medium); } else if (MogoMapUIController.getInstance().getCurrentMapVisualAngle().isMediumSight()) { MogoMarkerManager.getInstance(AbsMogoApplication.getApp()).inVisibleWithoutMarkers(DataTypes.TYPE_MARKER_ADAS); MogoMapUIController.getInstance().changeMapVisualAngle(VisualAngleMode.MODE_LONG_SIGHT, null); - mSwitchText.setText(R.string.bus_map_model_faster); + mSwitchMapModeImage.setImageResource(R.drawable.bus_switch_map_long); } } }); @@ -217,6 +217,14 @@ public abstract class BaseBusTabFragment CallerHmiManager.INSTANCE.registerUpgradeTipsCallback(() -> mUpgradeTipIv); } + private void updateSwitchMapIcon(){ + if (MogoMapUIController.getInstance().getCurrentMapVisualAngle().isLongSight()) { + mSwitchMapModeImage.setImageResource(R.drawable.bus_switch_map_long); + } else if (MogoMapUIController.getInstance().getCurrentMapVisualAngle().isMediumSight()) { + mSwitchMapModeImage.setImageResource(R.drawable.bus_switch_map_medium); + } + } + private void debugArrivedRoute() { BDRouteDataTestUtils.converToRouteData(); } diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BusFragment.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BusFragment.java index 38633cccd5..0f9e23c4d0 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BusFragment.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BusFragment.java @@ -11,6 +11,7 @@ import androidx.annotation.NonNull; import com.mogo.commons.AbsMogoApplication; import com.mogo.commons.debug.DebugConfig; import com.mogo.commons.voice.AIAssist; +import com.mogo.eagle.core.data.map.CenterLine; import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener; import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager; import com.mogo.eagle.core.function.call.map.CallerHDMapManager; @@ -334,10 +335,12 @@ public class BusFragment extends BaseBusTabFragment .latitude(lat) .longitude(longi); IMogoMarker marker = MogoMarkerManager.getInstance(AbsMogoApplication.getApp()) .addMarker(uuid, options); - marker.setRotateAngle(CallerHDMapManager.INSTANCE.getCenterLineInfo( - longi,lat,-1) - .getAngle() - .floatValue()); + CenterLine centerLine = CallerHDMapManager.INSTANCE.getCenterLineInfo( + longi,lat,-1); + if (null != centerLine){ // 有可能鹰眼map为空没有角度。判空使用后可能造成maker角度跟道路角度不一致 + marker.setRotateAngle(centerLine.getAngle().floatValue()); + } + }else { CallerLogger.INSTANCE.d(M_BUS + "RemoveMapMaker=",uuid+"=latitude="+lat+",longitude="+longi); MogoMarkerManager.getInstance(AbsMogoApplication.getApp()).removeMarkers(uuid); diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/model/BusLineModel.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/model/BusLineModel.java index e38ed03522..2105bb497e 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/model/BusLineModel.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/model/BusLineModel.java @@ -4,6 +4,7 @@ import android.content.Context; import com.mogo.commons.AbsMogoApplication; import com.mogo.eagle.core.utilcode.mogo.toast.TipToast; +import com.mogo.eagle.core.utilcode.util.NetworkUtils; import com.mogo.och.bus.bean.BusQueryLinesResponse; import com.mogo.och.bus.bean.BusRoutesResponse; import com.mogo.och.bus.callback.IBusLinesCallback; @@ -53,7 +54,11 @@ public class BusLineModel { @Override public void onFail(String failMsg) { - + if (!NetworkUtils.isConnected(mContext)) { + TipToast.shortTip("网络异常,请稍后重试"); + }else { + TipToast.longTip("查询所有绑定路线失败:"+failMsg); + } } }); } @@ -69,7 +74,11 @@ public class BusLineModel { @Override public void onFail(String failMsg) { - TipToast.longTip("切换路线失败"); + if (!NetworkUtils.isConnected(mContext)) { + TipToast.shortTip("网络异常,请稍后重试"); + }else { + TipToast.longTip("切换路线失败:"+failMsg); + } } }); } diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/model/BusOrderModel.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/model/BusOrderModel.java index e7e11b5703..87da0cd87f 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/model/BusOrderModel.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/model/BusOrderModel.java @@ -461,6 +461,8 @@ public class BusOrderModel { public void onFail(String failMsg) { if (!NetworkUtils.isConnected(mContext)) { TipToast.shortTip("网络异常,请稍后重试"); + }else{ + TipToast.longTip("离站上报失败:"+failMsg); } } }); @@ -548,7 +550,10 @@ public class BusOrderModel { public void onFail(String failMsg) { if (!NetworkUtils.isConnected(mContext)) { TipToast.shortTip("网络异常,请稍后重试"); + }else { + TipToast.longTip("离站上报失败:"+failMsg); } + } }); } @@ -605,7 +610,7 @@ public class BusOrderModel { if (!NetworkUtils.isConnected(mContext)) { TipToast.shortTip("网络异常,请稍后重试"); }else { - TipToast.shortTip(failMsg); + TipToast.shortTip("收车失败:"+failMsg); } } }); @@ -632,7 +637,7 @@ public class BusOrderModel { if (!NetworkUtils.isConnected(mContext)) { TipToast.shortTip("网络异常,请稍后重试"); }else { - TipToast.shortTip(failMsg); + TipToast.shortTip("出车失败:"+failMsg); } } }); @@ -659,8 +664,9 @@ public class BusOrderModel { if (!NetworkUtils.isConnected(mContext)) { TipToast.shortTip("网络异常,请稍后重试"); }else { - TipToast.shortTip(failMsg); + TipToast.shortTip("出车收车状态查询:"+failMsg); } + queryOperationStatus(); } }); } diff --git a/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1440/bus_switch_map_angle.png b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1440/bus_switch_map_angle.png deleted file mode 100644 index 3e1b96f3e3..0000000000 Binary files a/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1440/bus_switch_map_angle.png and /dev/null differ diff --git a/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1440/bus_switch_map_long.png b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1440/bus_switch_map_long.png new file mode 100755 index 0000000000..cf3e5a3778 Binary files /dev/null and b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1440/bus_switch_map_long.png differ diff --git a/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1440/bus_switch_map_medium.png b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1440/bus_switch_map_medium.png new file mode 100755 index 0000000000..bdc2725468 Binary files /dev/null and b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1440/bus_switch_map_medium.png differ diff --git a/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1600/bus_switch_map_angle.png b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1600/bus_switch_map_angle.png deleted file mode 100644 index 3e1b96f3e3..0000000000 Binary files a/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1600/bus_switch_map_angle.png and /dev/null differ diff --git a/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1600/bus_switch_map_long.png b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1600/bus_switch_map_long.png new file mode 100755 index 0000000000..cf3e5a3778 Binary files /dev/null and b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1600/bus_switch_map_long.png differ diff --git a/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1600/bus_switch_map_medium.png b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1600/bus_switch_map_medium.png new file mode 100755 index 0000000000..bdc2725468 Binary files /dev/null and b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi-2560x1600/bus_switch_map_medium.png differ diff --git a/OCH/mogo-och-bus/src/main/res/drawable-xhdpi/bus_switch_map_angle.png b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi/bus_switch_map_angle.png deleted file mode 100644 index 3e1b96f3e3..0000000000 Binary files a/OCH/mogo-och-bus/src/main/res/drawable-xhdpi/bus_switch_map_angle.png and /dev/null differ diff --git a/OCH/mogo-och-bus/src/main/res/drawable-xhdpi/bus_switch_map_long.png b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi/bus_switch_map_long.png new file mode 100755 index 0000000000..cf3e5a3778 Binary files /dev/null and b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi/bus_switch_map_long.png differ diff --git a/OCH/mogo-och-bus/src/main/res/drawable-xhdpi/bus_switch_map_medium.png b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi/bus_switch_map_medium.png new file mode 100644 index 0000000000..bdc2725468 Binary files /dev/null and b/OCH/mogo-och-bus/src/main/res/drawable-xhdpi/bus_switch_map_medium.png differ diff --git a/OCH/mogo-och-bus/src/main/res/layout/bus_base_fragment.xml b/OCH/mogo-och-bus/src/main/res/layout/bus_base_fragment.xml index 77d35e6207..6e5d9df0c7 100644 --- a/OCH/mogo-och-bus/src/main/res/layout/bus_base_fragment.xml +++ b/OCH/mogo-och-bus/src/main/res/layout/bus_base_fragment.xml @@ -71,49 +71,28 @@ tools:visibility="visible" /> - - - - + android:layout_height="wrap_content" /> - + android:layout_marginLeft="@dimen/module_mogo_och_margin_left" + android:layout_marginBottom="@dimen/module_mogo_och_margin_bottom" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintLeft_toLeftOf="parent"/> + app:layout_constraintLeft_toRightOf="@id/bus_switch_model_layout"> commonCallback) { - if (mCurrentOCHOrder == null) return; - CallerLogger.INSTANCE.d(M_TAXI_P + TAG, "--route--- checkPhoneAndUpdateStatus"); - TaxiPassengerServiceManager.getInstance().arrivedAndScore(mContext,mCurrentOCHOrder.orderNo, - score, new TaxiPassengerServiceCallback() { + public void arrivedAndScore(int score,String orderNo ,ITaxiPassengerCommonValueCallback commonCallback) { + if (orderNo == null) return; + TaxiPassengerServiceManager.getInstance().arrivedAndScore(mContext,orderNo,score, + new TaxiPassengerServiceCallback() { @Override public void onSuccess(TaxiPassengerBaseRespBean data) { ToastUtils.showLong("评分成功"); diff --git a/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/presenter/BaseTaxiPassengerPresenter.java b/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/presenter/BaseTaxiPassengerPresenter.java index 18f8c192d1..86f529c5fb 100644 --- a/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/presenter/BaseTaxiPassengerPresenter.java +++ b/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/presenter/BaseTaxiPassengerPresenter.java @@ -123,7 +123,7 @@ public class BaseTaxiPassengerPresenter extends Presenter { - mView.showOrHideArrivedEndLayout(false, ""); - mView.showOrHidePressengerCheckPager(true, order.startSiteAddr, + mView.preOrderThankPageTenlogic(order.startSiteAddr, order.endSiteAddr, order.passengerNum, order.carNumber, order.passengerPhone); }); return; } + // 30 用户到达上车点 并通过了手机号后四位验证 + // 40 服务中 if (TaxiPassengerOrderStatusEnum.UserArriveAtStart.getCode() == order.orderStatus || TaxiPassengerOrderStatusEnum.OnTheWayToEnd.getCode() == order.orderStatus){ runOnUIThread(() -> mView.showOrHideServingOrderFragment(true)); return; } + // 50 到达终点 乘客可以评价 if (TaxiPassengerOrderStatusEnum.ArriveAtEnd.getCode() == order.orderStatus){ TaxiPassengerModel.getInstance().recoverNaviInfo(); TaxiPassengerGeocodeSearchModel.getInstance(getContext()).destroyGeocodeSearch(); runOnUIThread(() -> { mView.showOrHideServingOrderFragment(false); - mView.showOrHideArrivedEndLayout(true, order.endSiteAddr); + mView.showOrHideArrivedEndLayout(true, order.endSiteAddr,order.orderNo); }); return; } + // 60 服务完成 页面 if (TaxiPassengerOrderStatusEnum.JourneyCompleted.getCode() == order.orderStatus){ - runOnUIThread(() -> { - mView.showOrHideServingOrderFragment(false); - }); TaxiPassengerGeocodeSearchModel.getInstance(getContext()).destroyGeocodeSearch(); mCurrentPassengerOrder = null; return; @@ -201,14 +203,8 @@ public class BaseTaxiPassengerPresenter extends Presenter() { - - @Override - public void onCommonCallback(Boolean aBoolean) { - mView.showArrivedEndLayout2Thank(aBoolean); - } - }); + public void arrivedAndScore(int score,String orderNo){ + TaxiPassengerModel.getInstance().arrivedAndScore(score,orderNo, aBoolean -> mView.showArrivedEndLayout2Thank(aBoolean)); } } diff --git a/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/TaxiPassengerArrivedView.kt b/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/TaxiPassengerArrivedView.kt index 0f40c4b5b3..9238bd5744 100644 --- a/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/TaxiPassengerArrivedView.kt +++ b/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/TaxiPassengerArrivedView.kt @@ -2,6 +2,7 @@ package com.mogo.och.taxi.passenger.ui import android.animation.* import android.content.Context +import android.graphics.drawable.AnimationDrawable import android.util.AttributeSet import android.view.LayoutInflater import android.view.View @@ -13,9 +14,20 @@ import android.widget.TextView import com.amap.api.navi.view.PoiInputSearchWidget 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.OverlayViewUtils +import com.mogo.eagle.core.widget.media.video.SimpleVideoPlayer import com.mogo.och.common.module.wigets.OCHBorderShadowLayout import com.mogo.och.taxi.passenger.R -import com.mogo.och.taxi.passenger.callback.ITaxiPassengerCommonValueCallback +import com.mogo.och.taxi.passenger.callback.ITaxiPassengerCommonCallback +import com.mogo.och.taxi.passenger.callback.ITaxiPassengerScoreCallback +import com.shuyu.gsyvideoplayer.builder.GSYVideoOptionBuilder +import com.shuyu.gsyvideoplayer.listener.GSYSampleCallBack +import com.shuyu.gsyvideoplayer.utils.GSYVideoType +import io.reactivex.Observable +import io.reactivex.android.schedulers.AndroidSchedulers +import io.reactivex.disposables.Disposable +import java.util.concurrent.TimeUnit + /** * @@ -41,12 +53,21 @@ class TaxiPassengerArrivedView :RelativeLayout, View.OnClickListener { private lateinit var ivStarThird: ImageView private lateinit var ivStarFourth: ImageView private lateinit var ivStarFifth: ImageView + private lateinit var ivAnimalList: ImageView + private lateinit var svpFrame: SimpleVideoPlayer + private var subscribe: Disposable?=null + private var orderNo = "" - var taxiPassengerCommonValueCallback: ITaxiPassengerCommonValueCallback?=null - var trAnimation: Animation = AnimationUtils.loadAnimation( + private val gsyVideoOptionBuilder = GSYVideoOptionBuilder() + + + var iTaxiPassengerScoreCallback: ITaxiPassengerScoreCallback?=null + + var taxiPassengerCommonCallback: ITaxiPassengerCommonCallback?=null + var left2Right: Animation = AnimationUtils.loadAnimation( context, R.anim.left_to_right ) - var troutAnimation: Animation = AnimationUtils.loadAnimation( + var right2Left: Animation = AnimationUtils.loadAnimation( context, R.anim.right_to_left ) var alphaAnimation: Animation = AnimationUtils.loadAnimation( @@ -55,6 +76,9 @@ class TaxiPassengerArrivedView :RelativeLayout, View.OnClickListener { private var allStartOrdered = mutableListOf() + var show: Boolean = false + var showThanks:Boolean = false + private fun initView(context: Context) { d(SceneConstant.M_TAXI_P + TAG, "initView") LayoutInflater.from(context).inflate(R.layout.taxi_p_arrived_end_panel, this, true) @@ -62,17 +86,31 @@ class TaxiPassengerArrivedView :RelativeLayout, View.OnClickListener { tvFeel = findViewById(R.id.tv_feel) ochShadowLayout = findViewById(R.id.och_shadow_layout) ochThankShadowLayout = findViewById(R.id.och_thank_shadow_layout) + ivAnimalList = findViewById(R.id.iv_animal_list) + svpFrame = findViewById(R.id.svp_frame) - allStartOrdered = mutableListOf() + allStartOrdered = mutableListOf() initScore() findViewById(R.id.tv_please_score).setOnClickListener(this) // debug 弹出 mArrivedEndStation.setOnLongClickListener { - showThanksPageWithAnimation(true) + scoreSuccess() false } + + val url = "android.resource://" + context.packageName + "/" + R.raw.end_video + gsyVideoOptionBuilder.setUrl(url) + .setCacheWithPlay(false) + .setPlayTag("TaxiPassengerArrivedView") + .setVideoAllCallBack(object : GSYSampleCallBack() { + override fun onAutoComplete(url: String?, vararg objects: Any?) { + svpFrame.setBackgroundResource(R.drawable.tail_ani_0090) + } + }) + .build(svpFrame) + GSYVideoType.setShowType(GSYVideoType.SCREEN_TYPE_FULL) } private fun initScore() { @@ -94,10 +132,26 @@ class TaxiPassengerArrivedView :RelativeLayout, View.OnClickListener { allStartOrdered.add(ivStarFifth) } + override fun onAttachedToWindow() { + super.onAttachedToWindow() + show = true + } + + override fun onDetachedFromWindow() { + svpFrame.setBackgroundResource(R.drawable.tail_ani_0000) + super.onDetachedFromWindow() + show = false + subscribe?.let { + if (!it.isDisposed) { + it.dispose() + } + } + } + override fun onClick(v: View?) { when (v?.id) { R.id.tv_please_score -> { - taxiPassengerCommonValueCallback?.onCommonCallback(2) + iTaxiPassengerScoreCallback?.onScoreCallback(2,orderNo) } R.id.iv_star_first -> {commitAndStartAnimation(1,"不满意")} R.id.iv_star_second -> {commitAndStartAnimation(2,"不满意")} @@ -127,6 +181,9 @@ class TaxiPassengerArrivedView :RelativeLayout, View.OnClickListener { } } + /** + * 星星动画 + */ private fun animation(fraction: Int) { val showView = allStartOrdered[currentAnimarion] @@ -171,42 +228,86 @@ class TaxiPassengerArrivedView :RelativeLayout, View.OnClickListener { set.addListener(object : AnimatorListenerAdapter() { override fun onAnimationEnd(animation: Animator?) { super.onAnimationEnd(animation) - taxiPassengerCommonValueCallback?.onCommonCallback(fraction) + iTaxiPassengerScoreCallback?.onScoreCallback(fraction,orderNo) } }) } set.start() } - - fun setDataAndStartAnimation(endSiteAddr: String?) { + /** + * 设置目的地重置星星状态 + */ + fun setDataAndStartAnimation(endSiteAddr: String?,orderId:String) { mArrivedEndStation.text = endSiteAddr - ochShadowLayout.startAnimation(trAnimation) + ochThankShadowLayout.visibility = View.GONE + ivAnimalList.visibility = View.GONE + + svpFrame.startButton.performClick() + postDelayed({ + ochShadowLayout.visibility = View.VISIBLE + ochShadowLayout.startAnimation(left2Right) + },1928) + + showThanks = false + this.orderNo = orderId + resetStar() + } + + /** + * 评论成功 向左移动并消失 消失后感谢页面透明度0-1 然后开始小手的动画 + */ + fun scoreSuccess(){ + right2Left.setAnimationListener(object :PoiInputSearchWidget.AnimationListenerAdapter(){ + override fun onAnimationEnd(p0: Animation?) { + ochShadowLayout.visibility = View.GONE + ochThankShadowLayout.startAnimation(alphaAnimation) + alphaAnimation.setAnimationListener(object : PoiInputSearchWidget.AnimationListenerAdapter(){ + override fun onAnimationStart(p0: Animation?) { + ochThankShadowLayout.visibility = View.VISIBLE + showThanks = true + } + override fun onAnimationEnd(p0: Animation?) { + ivAnimalList.visibility = View.VISIBLE + val animationDrawable = ivAnimalList.drawable as AnimationDrawable + animationDrawable.start() + } + }) + } + }) + ochShadowLayout.startAnimation(right2Left) + + // 10s 后逻辑 + subscribe = Observable.timer(10000, TimeUnit.MILLISECONDS) + .observeOn(AndroidSchedulers.mainThread()) + .subscribe { + // 正在展示感谢页面 + if (taxiPassengerCommonCallback == null) { + // 没有用户确定页面 + OverlayViewUtils.dismissOverlayView(this@TaxiPassengerArrivedView) + } else { + // 有排队展示的用户确定页面 + taxiPassengerCommonCallback?.onCommonCallback() + } + } + } + + /** + * 评论失败 重置状态 + */ + fun scoreFail(){ + scoreSuccess() +// tvFeel.text = "" +// resetStar() + } + + private fun resetStar() { allStartOrdered.forEach { it.setImageResource(R.drawable.taxi_p_passenger_star) it.isEnabled = true } } - fun showThanksPageWithAnimation(isSuccess:Boolean) { - if(!isSuccess){ - tvFeel.text = "" - allStartOrdered.forEach { - it.setImageResource(R.drawable.taxi_p_passenger_star) - it.isEnabled = true - } - return - } - troutAnimation.setAnimationListener(object :PoiInputSearchWidget.AnimationListenerAdapter(){ - override fun onAnimationEnd(p0: Animation?) { - ochShadowLayout.visibility = View.GONE - ochThankShadowLayout.startAnimation(alphaAnimation) - ochThankShadowLayout.visibility = View.VISIBLE - } - }) - ochShadowLayout.startAnimation(troutAnimation) - } - companion object { const val TAG = "TaxiPassengerArrivedView" } diff --git a/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/TaxiPassengerBaseFragment.java b/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/TaxiPassengerBaseFragment.java index 80d3117003..aa54f8d5ae 100644 --- a/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/TaxiPassengerBaseFragment.java +++ b/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/TaxiPassengerBaseFragment.java @@ -78,10 +78,8 @@ public class TaxiPassengerBaseFragment extends MvpFragment { + //showOrHideArrivedEndLayout(true, "北京北京北京", "1527481606997577728"); + //showOrHidePressengerCheckPager(true, "开始站点开", "开始站点开始站点开始", "2", "京A888888", "18811539480"); + //CallerHmiManager.INSTANCE.showToolsView(); }); } private void initArrivedView(){ mArrivedEndView = new WeakReference<>(new TaxiPassengerArrivedView(getContext())); - mArrivedEndView.get().setTaxiPassengerCommonValueCallback(integer -> getPresenter().arrivedAndScore(integer)); + mArrivedEndView.get().setITaxiPassengerScoreCallback((fraction, orderNo) -> getPresenter().arrivedAndScore(fraction,orderNo)); } private void initCheckView() { mArrivedCheckView = new WeakReference<>(new TaxiPassengerCheckView(getContext())); - mArrivedCheckView.get().setOnCheckPhoneAndUpdateStatusListener(phoneTail -> getPresenter().checkAndUpdateStatus(phoneTail)); + mArrivedCheckView.get().setITaxiPassengerCommonValueCallback(phoneTail -> getPresenter().checkAndUpdateStatus(phoneTail)); } /** @@ -215,8 +214,6 @@ public class TaxiPassengerBaseFragment extends MvpFragment { + showOrHideArrivedEndLayout(false, "",""); + showOrHidePressengerCheckPager(true, startSiteAddr, + endSiteAddr, passengerNum, carNumber, phone); + mArrivedEndView.get().setTaxiPassengerCommonCallback(null); + }); + }else { + // 正在展示打分页面 + showOrHideArrivedEndLayout(false, "",""); + showOrHidePressengerCheckPager(true, startSiteAddr, + endSiteAddr, passengerNum, carNumber, phone); + } + } + + } + + /** + * ① 取消订单 到达上车点后乘客取消订单 隐藏乘客验证页面 + * ② 司机到达上车点 到达上车点 展示乘客验证页面 + * ③ 乘客到达上车点 手机号验证成功后 隐藏乘客验证页面 + * ④ debug 使用 + */ public void showOrHidePressengerCheckPager(boolean isShow, String startSiteAddr, String endSiteAddr, String passengerNum, @@ -288,7 +328,7 @@ public class TaxiPassengerBaseFragment extends MvpFragment?=null private lateinit var tvPassengerCount: TextView private lateinit var tvPassengerStart: TextView @@ -115,7 +114,7 @@ class TaxiPassengerCheckView :RelativeLayout, View.OnClickListener { ToastUtils.showLong("请输入正确的手机尾号") return } - onCheckPhoneAndUpdateStatusListener?.onCheckPhoneAndUpdateOrderStatus(numberStr) + iTaxiPassengerCommonValueCallback?.onCommonCallback(numberStr) } private fun selectIndex(i: Int) { @@ -141,7 +140,7 @@ class TaxiPassengerCheckView :RelativeLayout, View.OnClickListener { index-- } changeStyle() - return + //return } numSelect[index] = null numSelectTextView[index]!!.text = "" diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/anim/alpha_hide_show.xml b/OCH/mogo-och-taxi-passenger/src/main/res/anim/alpha_hide_show.xml index b22df1d9f5..ddb2eaf470 100644 --- a/OCH/mogo-och-taxi-passenger/src/main/res/anim/alpha_hide_show.xml +++ b/OCH/mogo-och-taxi-passenger/src/main/res/anim/alpha_hide_show.xml @@ -1,3 +1,3 @@ \ No newline at end of file + android:duration="1000" android:fromAlpha="0" android:toAlpha="1" /> \ No newline at end of file diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/anim/left_to_right.xml b/OCH/mogo-och-taxi-passenger/src/main/res/anim/left_to_right.xml index 9444da0304..5d345730d9 100644 --- a/OCH/mogo-och-taxi-passenger/src/main/res/anim/left_to_right.xml +++ b/OCH/mogo-och-taxi-passenger/src/main/res/anim/left_to_right.xml @@ -1,7 +1,7 @@ - + \ No newline at end of file diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/anim/right_to_left.xml b/OCH/mogo-och-taxi-passenger/src/main/res/anim/right_to_left.xml index dfc420e67e..18bc75b16e 100644 --- a/OCH/mogo-och-taxi-passenger/src/main/res/anim/right_to_left.xml +++ b/OCH/mogo-och-taxi-passenger/src/main/res/anim/right_to_left.xml @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_map_arrow.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_map_arrow.png index bb4a45f34d..1297e5e7ae 100644 Binary files a/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_map_arrow.png and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_map_arrow.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_switch_map_bg.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_switch_map_bg.png deleted file mode 100644 index 369c10cf46..0000000000 Binary files a/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_switch_map_bg.png and /dev/null differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_switch_map_long.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_switch_map_long.png new file mode 100755 index 0000000000..4bcb596e68 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_switch_map_long.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_switch_map_medium.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_switch_map_medium.png new file mode 100755 index 0000000000..a0b6559ee0 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi-2560x1440/taxi_p_switch_map_medium.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_map_arrow.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_map_arrow.png index bb4a45f34d..1297e5e7ae 100644 Binary files a/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_map_arrow.png and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_map_arrow.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_switch_map_bg.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_switch_map_bg.png deleted file mode 100644 index 369c10cf46..0000000000 Binary files a/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_switch_map_bg.png and /dev/null differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_switch_map_long.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_switch_map_long.png new file mode 100755 index 0000000000..4bcb596e68 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_switch_map_long.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_switch_map_medium.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_switch_map_medium.png new file mode 100755 index 0000000000..a0b6559ee0 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable-xhdpi/taxi_p_switch_map_medium.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/bg_taxi_score_success.xml b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/bg_taxi_score_success.xml new file mode 100644 index 0000000000..06ec998707 --- /dev/null +++ b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/bg_taxi_score_success.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00000.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00000.png new file mode 100755 index 0000000000..16d7388c6a Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00000.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00002.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00002.png new file mode 100755 index 0000000000..03911ae2af Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00002.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00004.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00004.png new file mode 100755 index 0000000000..f7dd0c6b25 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00004.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00006.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00006.png new file mode 100755 index 0000000000..70108e3707 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00006.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00008.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00008.png new file mode 100755 index 0000000000..a0877d0acc Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00008.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00010.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00010.png new file mode 100755 index 0000000000..f297f5d342 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00010.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00012.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00012.png new file mode 100755 index 0000000000..68f2afcae2 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00012.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00014.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00014.png new file mode 100755 index 0000000000..831402be08 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00014.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00016.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00016.png new file mode 100755 index 0000000000..267f43b0f3 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00016.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00018.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00018.png new file mode 100755 index 0000000000..090e0f5956 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00018.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00020.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00020.png new file mode 100755 index 0000000000..79dcb2bd7d Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00020.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00022.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00022.png new file mode 100755 index 0000000000..f0bdfebe51 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00022.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00024.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00024.png new file mode 100755 index 0000000000..f2849724a9 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00024.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00026.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00026.png new file mode 100755 index 0000000000..61ced03693 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00026.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00028.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00028.png new file mode 100755 index 0000000000..267f43b0f3 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00028.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00030.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00030.png new file mode 100755 index 0000000000..6ace3723e0 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00030.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00032.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00032.png new file mode 100755 index 0000000000..7bf472281c Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00032.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00034.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00034.png new file mode 100755 index 0000000000..b4f6621cf1 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00034.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00036.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00036.png new file mode 100755 index 0000000000..c7b712902f Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00036.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00038.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00038.png new file mode 100755 index 0000000000..948889745a Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00038.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00040.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00040.png new file mode 100755 index 0000000000..642dc60de2 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00040.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00042.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00042.png new file mode 100755 index 0000000000..58fd5e0e7e Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00042.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00044.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00044.png new file mode 100755 index 0000000000..19bcbac261 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00044.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00046.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00046.png new file mode 100755 index 0000000000..acd43f4298 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00046.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00048.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00048.png new file mode 100755 index 0000000000..170eb808a3 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00048.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00050.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00050.png new file mode 100755 index 0000000000..4be63ceae0 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00050.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00052.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00052.png new file mode 100755 index 0000000000..e32c7f0f05 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00052.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00054.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00054.png new file mode 100755 index 0000000000..261498d77c Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00054.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00056.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00056.png new file mode 100755 index 0000000000..6e86e9562e Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00056.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00058.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00058.png new file mode 100755 index 0000000000..eccea55da7 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00058.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00060.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00060.png new file mode 100755 index 0000000000..84f0a318ec Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00060.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00062.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00062.png new file mode 100755 index 0000000000..638959b769 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00062.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00064.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00064.png new file mode 100755 index 0000000000..6cd7a9c5e3 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00064.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00066.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00066.png new file mode 100755 index 0000000000..7c98a6bc11 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00066.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00068.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00068.png new file mode 100755 index 0000000000..1e29bf4ff5 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00068.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00069.png b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00069.png new file mode 100755 index 0000000000..5ac76f3089 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/hand_00069.png differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/tail_ani_0000.webp b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/tail_ani_0000.webp new file mode 100644 index 0000000000..dc6d9e6bcd Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/tail_ani_0000.webp differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/drawable/tail_ani_0090.webp b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/tail_ani_0090.webp new file mode 100644 index 0000000000..5bc925da38 Binary files /dev/null and b/OCH/mogo-och-taxi-passenger/src/main/res/drawable/tail_ani_0090.webp differ diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/layout/taxi_p_arrived_end_panel.xml b/OCH/mogo-och-taxi-passenger/src/main/res/layout/taxi_p_arrived_end_panel.xml index 4be10cf32d..f97c97de3d 100644 --- a/OCH/mogo-och-taxi-passenger/src/main/res/layout/taxi_p_arrived_end_panel.xml +++ b/OCH/mogo-och-taxi-passenger/src/main/res/layout/taxi_p_arrived_end_panel.xml @@ -2,12 +2,18 @@ + + @@ -237,4 +244,14 @@ + + \ No newline at end of file diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/layout/taxi_p_base_fragment.xml b/OCH/mogo-och-taxi-passenger/src/main/res/layout/taxi_p_base_fragment.xml index f38dd7ccfc..0cfb6db266 100644 --- a/OCH/mogo-och-taxi-passenger/src/main/res/layout/taxi_p_base_fragment.xml +++ b/OCH/mogo-och-taxi-passenger/src/main/res/layout/taxi_p_base_fragment.xml @@ -11,7 +11,7 @@ android:layout_width="@dimen/dp_630" android:layout_height="@dimen/dp_630" android:layout_marginLeft="-59px" - android:layout_marginTop="@dimen/dp_20" + android:layout_marginTop="-40px" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" /> @@ -36,7 +36,7 @@ android:layout_marginLeft="40px" android:layout_marginTop="40px" android:layout_marginBottom="@dimen/dp_50" - android:background="@drawable/taxi_p_switch_map_bg" + android:background="@drawable/taxi_p_switch_map_medium" android:scaleType="fitXY" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" /> @@ -46,12 +46,12 @@ android:layout_width="300px" android:layout_height="76px" android:layout_gravity="center" - android:layout_marginLeft="@dimen/dp_40" - android:layout_marginBottom="@dimen/dp_40" + android:layout_marginRight="@dimen/dp_40" + android:layout_marginBottom="@dimen/dp_50" android:background="@drawable/taxi_p_mogologo_nor" - android:visibility="gone" + app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintLeft_toLeftOf="parent" /> + app:layout_constraintEnd_toEndOf="parent" />