[2110] 账号信息
This commit is contained in:
@@ -160,14 +160,16 @@ class AutoPilotAndCheckView @JvmOverloads constructor(
|
||||
actvLoginout.onClick {
|
||||
EventBus.getDefault().post(EventLogout())
|
||||
}
|
||||
actvLoginout.visibility = View.VISIBLE
|
||||
CallerHmiManager.setBusOperationView(toolBusOperationView)
|
||||
EventBus.getDefault().post(EventBusOperation(0))
|
||||
|
||||
when (DebugConfig.getProductFlavor()) {
|
||||
"fPadLenovoOchTaxi" -> {
|
||||
actvLoginout.visibility = View.VISIBLE
|
||||
//出租车司机
|
||||
}
|
||||
"fPadLenovoOchBus" ->{
|
||||
CallerHmiManager.setBusOperationView(toolBusOperationView)
|
||||
EventBus.getDefault().post(EventBusOperation(0))
|
||||
//小巴车司机
|
||||
}
|
||||
else -> {
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ import android.view.View
|
||||
import com.mogo.eagle.core.data.temp.EventBusOperation
|
||||
import com.mogo.eagle.core.function.api.hmi.view.IOchBusView
|
||||
import com.mogo.eagle.core.function.hmi.R
|
||||
import com.mogo.eagle.core.utilcode.util.ShadowUtils
|
||||
import com.mogo.eagle.core.utilcode.util.SharedPrefs
|
||||
import kotlinx.android.synthetic.main.view_och_bus_operation.view.*
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
|
||||
@@ -23,6 +25,9 @@ class BusOperationView @JvmOverloads constructor(
|
||||
init {
|
||||
LayoutInflater.from(context).inflate(R.layout.view_och_bus_operation,this,true)
|
||||
ochBusOperationStatus.setOnClickListener(this)
|
||||
context?.let {
|
||||
actvAccountPhone.text = SharedPrefs.getInstance(it).getString("account","")
|
||||
}
|
||||
}
|
||||
|
||||
override fun showBusOperation() {
|
||||
@@ -30,10 +35,13 @@ class BusOperationView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
override fun changerOperationStatus(isOut: Boolean) {
|
||||
if (isOut){
|
||||
ochBusOperationStatusCTV.text = "收车"
|
||||
}else{
|
||||
ochBusOperationStatusCTV.text = "出车"
|
||||
|
||||
}
|
||||
|
||||
override fun onAttachedToWindow() {
|
||||
super.onAttachedToWindow()
|
||||
context?.let {
|
||||
actvAccountPhone.text = SharedPrefs.getInstance(it).getString("account","")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 7.0 KiB |
@@ -17,24 +17,34 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.mogo.eagle.core.function.hmi.ui.tools.BusOperationView
|
||||
android:id="@+id/toolBusOperationView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="162px"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/v_second_group"
|
||||
android:layout_width="14px"
|
||||
android:layout_height="50px"
|
||||
android:layout_marginStart="80px"
|
||||
android:layout_marginTop="158px"
|
||||
android:layout_marginTop="90px"
|
||||
android:background="@color/color_FF2966EC"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/toolBusOperationView" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/checkLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_216"
|
||||
android:layout_marginTop="@dimen/dp_266"
|
||||
android:layout_marginTop="@dimen/dp_90"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginStart="113px"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
app:layout_constraintStart_toStartOf="@+id/tv_check_title"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/v_second_group">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/check"
|
||||
@@ -135,16 +145,18 @@
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_check_title"
|
||||
android:layout_width="84px"
|
||||
android:layout_height="86px"
|
||||
android:layout_marginStart="113px"
|
||||
android:layout_marginTop="140px"
|
||||
android:layout_marginStart="19px"
|
||||
android:gravity="center"
|
||||
android:text="检测"
|
||||
android:textColor="@color/color_FFFFFF"
|
||||
android:textSize="42px"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintStart_toEndOf="@+id/v_second_group"
|
||||
app:layout_constraintTop_toTopOf="@+id/v_second_group"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/v_second_group"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="14px"
|
||||
@@ -280,13 +292,6 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/viewSystemVersion" />
|
||||
|
||||
<com.mogo.eagle.core.function.hmi.ui.tools.BusOperationView
|
||||
android:id="@+id/toolBusOperationView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@+id/systemVersionView"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/actvLoginout"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -298,6 +303,7 @@
|
||||
android:layout_marginBottom="40px"
|
||||
android:text="退出登录"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="42px"
|
||||
android:layout_width="790px"
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/ochBusOperationStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="40px"
|
||||
android:paddingBottom="40px"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible"
|
||||
tools:ignore="DuplicateIds">
|
||||
|
||||
<View
|
||||
android:id="@+id/bus_operation_view"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:layout_width="14px"
|
||||
android:layout_height="50px"
|
||||
android:layout_marginStart="80px"
|
||||
@@ -19,27 +19,45 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_bus_operation_title"
|
||||
app:layout_constraintTop_toTopOf="@+id/bus_operation_view"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/bus_operation_view"
|
||||
app:layout_constraintStart_toEndOf="@+id/bus_operation_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="113px"
|
||||
android:gravity="center"
|
||||
android:paddingBottom="4px"
|
||||
android:layout_marginStart="19px"
|
||||
android:text="@string/bus_operation_title"
|
||||
android:textColor="@color/color_FFFFFF"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="42px" />
|
||||
|
||||
<CheckedTextView
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/ochBusOperationStatusCTV"
|
||||
android:layout_width="@dimen/och_bus_operation_status_bg_width"
|
||||
android:layout_height="@dimen/och_bus_operation_status_bg_height"
|
||||
app:layout_constraintStart_toStartOf="@+id/tv_bus_operation_title"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tv_bus_operation_title"
|
||||
android:src="@drawable/icon_account_head"
|
||||
android:layout_width="@dimen/dp_120"
|
||||
android:layout_height="@dimen/dp_120"
|
||||
android:layout_below="@+id/tv_bus_operation_title"
|
||||
android:layout_marginStart="113px"
|
||||
android:layout_marginTop="40px"
|
||||
android:background="@drawable/bus_operation_status_bg_selector1"
|
||||
android:gravity="center"
|
||||
android:text="出车"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/bus_autopilot_text_color_normal"
|
||||
android:textSize="@dimen/module_mogo_och_autopilot_status_text_size"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
android:layout_marginTop="40px"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/v_account_line"
|
||||
app:layout_constraintTop_toTopOf="@+id/ochBusOperationStatusCTV"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ochBusOperationStatusCTV"
|
||||
app:layout_constraintStart_toEndOf="@+id/ochBusOperationStatusCTV"
|
||||
android:layout_marginStart="@dimen/dp_60"
|
||||
android:background="@android:color/white"
|
||||
android:layout_width="1px"
|
||||
android:layout_height="60px"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/actvAccountPhone"
|
||||
app:layout_constraintTop_toTopOf="@+id/ochBusOperationStatusCTV"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ochBusOperationStatusCTV"
|
||||
app:layout_constraintStart_toEndOf="@+id/v_account_line"
|
||||
android:layout_marginStart="@dimen/dp_60"
|
||||
android:text="138***1268"
|
||||
android:textSize="@dimen/dp_54"
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -23,7 +23,7 @@
|
||||
<string name="debug_panel">调试面板</string>
|
||||
<string name="debug_panel_fb">录包设置</string>
|
||||
<string name="check_vehicle_speed_setting">车速设置</string>
|
||||
<string name="bus_operation_title">出收车状态</string>
|
||||
<string name="bus_operation_title">账户信息</string>
|
||||
<string name="check_system_operation">系统运行</string>
|
||||
<string name="check_system_shut_down">关机</string>
|
||||
<string name="check_system_reboot">重启</string>
|
||||
|
||||
Reference in New Issue
Block a user