[2.13.0] Taxi个人中心UI调整
This commit is contained in:
@@ -4,6 +4,7 @@ import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import com.mogo.commons.debug.DebugConfig
|
||||
import com.mogo.eagle.core.data.temp.EventLogout
|
||||
import com.mogo.eagle.core.function.api.hmi.view.IOchBusView
|
||||
import com.mogo.eagle.core.function.hmi.R
|
||||
@@ -31,6 +32,14 @@ class BusOperationView @JvmOverloads constructor(
|
||||
clickPersonalRightView();
|
||||
}
|
||||
|
||||
private fun initPersonalIcon() {
|
||||
if("fPadLenovoOchTaxi" == DebugConfig.getProductFlavor()){
|
||||
ivGotoPersonalInfo.visibility = VISIBLE
|
||||
}else{
|
||||
ivGotoPersonalInfo.visibility = GONE
|
||||
}
|
||||
}
|
||||
|
||||
private fun clickPersonalRightView() {
|
||||
ivGotoPersonalInfo.onClick {
|
||||
EventBus.getDefault().post(EventLogout(EventLogout.PERSONAL_TYPE))
|
||||
@@ -39,6 +48,7 @@ class BusOperationView @JvmOverloads constructor(
|
||||
|
||||
override fun showBusOperation() {
|
||||
ochBusOperationStatus.visibility = View.VISIBLE
|
||||
initPersonalIcon()
|
||||
}
|
||||
|
||||
override fun changerOperationStatus(isOut: Boolean) {
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 417 B |
@@ -63,9 +63,11 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/ivGotoPersonalInfo"
|
||||
android:layout_width="@dimen/dp_17"
|
||||
android:layout_height="@dimen/dp_32"
|
||||
android:src="@drawable/icon_right"
|
||||
android:layout_width="@dimen/dp_64"
|
||||
android:layout_height="@dimen/dp_64"
|
||||
android:src="@drawable/och_arrow_right"
|
||||
android:visibility="gone"
|
||||
android:scaleType="center"
|
||||
android:layout_marginRight="@dimen/dp_40"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/actvAccountPhone"
|
||||
|
||||
Reference in New Issue
Block a user