[3.4.0]
[debugview 图片压缩]
@@ -155,11 +155,7 @@ class TaxiPassengerBaseFragment() :
|
||||
}
|
||||
|
||||
private fun initCheckView() {
|
||||
mArrivedCheckView = WeakReference(
|
||||
TaxiPassengerCheckView(
|
||||
context
|
||||
)
|
||||
)
|
||||
mArrivedCheckView = WeakReference(TaxiPassengerCheckView(context))
|
||||
mArrivedCheckView!!.get()!!.iTaxiPassengerCommonValueCallback =
|
||||
ITaxiPassengerCommonValueCallback { phoneTail: String? ->
|
||||
getPresenter()!!.checkAndUpdateStatus(phoneTail)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.mogo.och.taxi.passenger.ui.debug
|
||||
|
||||
class DebugEvent {
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package com.mogo.och.taxi.passenger.ui.debug
|
||||
|
||||
import android.content.Context
|
||||
import android.os.SystemClock
|
||||
import android.util.AttributeSet
|
||||
import android.view.LayoutInflater
|
||||
import android.view.ViewGroup
|
||||
import androidx.constraintlayout.widget.ConstraintLayout
|
||||
import androidx.fragment.app.FragmentActivity
|
||||
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.devatools.CallerDevaToolsManager
|
||||
import com.mogo.eagle.core.function.call.hmi.CallerHmiViewControlListenerManager
|
||||
import com.mogo.eagle.core.function.call.setting.CallerSkinModeListenerManager
|
||||
import com.mogo.eagle.core.function.hmi.ui.setting.ToggleDebugView
|
||||
import com.mogo.eagle.core.utilcode.kotlin.onClick
|
||||
import com.mogo.eagle.core.utilcode.util.ActivityUtils
|
||||
import com.mogo.och.common.module.manager.debug.DebugViewWatchDogFragment
|
||||
import com.mogo.och.taxi.passenger.R
|
||||
import com.mogo.och.taxi.passenger.ui.TaxiPassengerBaseFragment
|
||||
import kotlinx.android.synthetic.main.taxi_p_debug.view.tv_show_arrive
|
||||
import kotlinx.android.synthetic.main.taxi_p_debug.view.tv_show_phone_check
|
||||
import kotlinx.android.synthetic.main.taxi_p_debug.view.tv_show_start_autopilot
|
||||
import kotlinx.android.synthetic.main.taxi_p_statusview.view.iv_biz_icon
|
||||
import me.jessyan.autosize.utils.AutoSizeUtils
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
import org.greenrobot.eventbus.Subscribe
|
||||
import org.greenrobot.eventbus.ThreadMode
|
||||
import java.lang.ref.WeakReference
|
||||
|
||||
class DebugView @JvmOverloads constructor(
|
||||
context: Context,
|
||||
attrs: AttributeSet? = null,
|
||||
defStyleAttr: Int = 0
|
||||
) : ConstraintLayout(context, attrs, defStyleAttr), IMoGoAutopilotStatusListener {
|
||||
|
||||
companion object {
|
||||
const val TAG = "DebugView"
|
||||
}
|
||||
|
||||
init {
|
||||
LayoutInflater.from(context).inflate(R.layout.taxi_p_debug, this, true)
|
||||
visibility = GONE
|
||||
}
|
||||
|
||||
private var fragment:TaxiPassengerBaseFragment?=null
|
||||
|
||||
override fun onAttachedToWindow() {
|
||||
super.onAttachedToWindow()
|
||||
|
||||
EventBus.getDefault().register(this)
|
||||
|
||||
val activityByContext = ActivityUtils.getActivityByContext(context)
|
||||
if(activityByContext is FragmentActivity){
|
||||
val fragment =
|
||||
activityByContext.supportFragmentManager.findFragmentByTag(TaxiPassengerBaseFragment.TAG)
|
||||
if(fragment is TaxiPassengerBaseFragment){
|
||||
this.fragment = fragment
|
||||
}
|
||||
}
|
||||
|
||||
tv_show_arrive.onClick {
|
||||
fragment?.showOrHideArrivedEndLayout(true)
|
||||
}
|
||||
tv_show_phone_check.onClick {
|
||||
fragment?.showOrHidePressengerCheckPager(isShow = true)
|
||||
}
|
||||
tv_show_start_autopilot.onClick {
|
||||
fragment?.showOrHideStartAutopilotView(true)
|
||||
}
|
||||
|
||||
}
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
fun changeOverview(debugEvent: DebugEvent) {
|
||||
if(visibility== VISIBLE){
|
||||
visibility = GONE
|
||||
}else{
|
||||
visibility = VISIBLE
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
override fun onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow()
|
||||
EventBus.getDefault().unregister(this)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import android.content.Context
|
||||
import android.os.SystemClock
|
||||
import android.util.AttributeSet
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.constraintlayout.widget.ConstraintLayout
|
||||
import androidx.fragment.app.FragmentActivity
|
||||
@@ -13,11 +14,15 @@ import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager
|
||||
import com.mogo.eagle.core.function.call.hmi.CallerHmiViewControlListenerManager
|
||||
import com.mogo.eagle.core.function.call.setting.CallerSkinModeListenerManager
|
||||
import com.mogo.eagle.core.function.hmi.ui.setting.ToggleDebugView
|
||||
import com.mogo.eagle.core.utilcode.kotlin.onClick
|
||||
import com.mogo.eagle.core.utilcode.util.ActivityUtils
|
||||
import com.mogo.och.common.module.manager.debug.DebugViewWatchDogFragment
|
||||
import com.mogo.och.taxi.passenger.R
|
||||
import com.mogo.och.taxi.passenger.ui.debug.DebugEvent
|
||||
import kotlinx.android.synthetic.main.taxi_p_statusview.view.iv_biz_icon
|
||||
import kotlinx.android.synthetic.main.taxi_p_statusview.view.vShowDebugView
|
||||
import me.jessyan.autosize.utils.AutoSizeUtils
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
import java.lang.ref.WeakReference
|
||||
|
||||
class StatusBarView @JvmOverloads constructor(
|
||||
@@ -70,9 +75,11 @@ class StatusBarView @JvmOverloads constructor(
|
||||
|
||||
CallerAutoPilotStatusListenerManager.addListener(TAG, this)
|
||||
|
||||
// bizz_view.setOnClickListener { continuousClick(bizz) }
|
||||
//
|
||||
iv_biz_icon.setOnClickListener { continuousClick(debugView) }
|
||||
vShowDebugView.setOnLongClickListener {
|
||||
EventBus.getDefault().post(DebugEvent())
|
||||
false
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:visible="true"
|
||||
android:oneshot="false">
|
||||
<item android:drawable="@drawable/hand_00004" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00006" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00008" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00010" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00012" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00014" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00016" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00018" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00020" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00022" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00024" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00026" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00028" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00030" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00032" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00034" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00036" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00038" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00060" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00042" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00044" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00046" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00048" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00050" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00052" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00054" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00056" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00058" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00060" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00062" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00064" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00066" android:duration="60"/>
|
||||
<item android:drawable="@drawable/hand_00068" android:duration="60"/>
|
||||
|
||||
</animation-list>
|
||||
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 129 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 129 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 127 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 127 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 127 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 126 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 127 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 129 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 41 KiB |