[UiFix]修正UI走查问题

This commit is contained in:
renwj
2022-03-23 17:34:34 +08:00
parent fc85d3ffff
commit c0ac4beda6
8 changed files with 47758 additions and 15436 deletions

View File

@@ -97,7 +97,7 @@ internal class FeedBackView : ConstraintLayout {
transitionTo(0)
} else {
editOutRect.run {
transitionTo(-( it - top + height() + 240.PX))
transitionTo(-( it - top + height() + 300.PX))
}
}
}.also {

View File

@@ -96,7 +96,8 @@
android:layout_height="wrap_content"
android:textSize="28px"
android:layout_gravity="end"
tools:text="126/200"/>
tools:text="126/200"
android:layout_marginBottom="30px"/>
</LinearLayout>
<TextView

View File

@@ -2,6 +2,8 @@ package com.mogo.eagle.core.function.hmi.ui.tools
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
@@ -49,6 +51,7 @@ class AutoPilotAndCheckView @JvmOverloads constructor(
@SuppressLint("ClickableViewAccessibility")
private fun initView() {
background = ColorDrawable(Color.parseColor("#F0151D41"))
CallerAutopilotCarConfigListenerManager.addListener(TAG, this)
if (keyBoardUtil == null) {
keyBoardUtil = KeyBoardUtil(sKeyBoardView, etInputSpeed)

View File

@@ -11,6 +11,9 @@ class SpeedKeyboardView @JvmOverloads constructor(
) : KeyboardView(context, attrs) {
override fun onDraw(canvas: Canvas?) {
super.onDraw(canvas)
if (isInEditMode) {
return
}
val keyboard = keyboard ?: return
val keys = keyboard.keys
if (keys != null && keys.size > 0) {

View File

@@ -45,12 +45,18 @@ class CheckStatusView @JvmOverloads constructor(
override fun onAttachedToWindow() {
super.onAttachedToWindow()
//车辆监控
if (isInEditMode) {
return
}
CallerCheckManager.registerVehicleMonitoringListener(TAG, this)
}
override fun onDetachedFromWindow() {
super.onDetachedFromWindow()
//车辆监控
if (isInEditMode) {
return
}
CallerCheckManager.unregisterListener(TAG)
}

View File

@@ -266,11 +266,17 @@ class SystemVersionView @JvmOverloads constructor(
override fun onAttachedToWindow() {
super.onAttachedToWindow()
if (isInEditMode) {
return
}
CallerAutoPilotStatusListenerManager.addListener(TAG, this)
}
override fun onDetachedFromWindow() {
super.onDetachedFromWindow()
if (isInEditMode) {
return
}
CallerAutoPilotStatusListenerManager.removeListener(TAG)
}

View File

@@ -3,8 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="960px"
android:layout_height="match_parent"
android:background="@color/notice_check_dialog_bg_color">
android:layout_height="match_parent">
<ScrollView
android:layout_width="match_parent"
@@ -16,7 +15,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="wrap_content">
<View
android:layout_width="14px"
@@ -27,21 +26,20 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.constraintlayout.widget.ConstraintLayout
<LinearLayout
android:id="@+id/checkLayout"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_216"
android:layout_marginTop="@dimen/dp_266"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginStart="113px"
app:layout_constraintTop_toTopOf="parent">
<RelativeLayout
android:id="@+id/check"
android:layout_width="0px"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintEnd_toStartOf="@+id/debug"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:visibility="gone">
<com.mogo.eagle.core.function.hmi.ui.widget.CheckStatusView
@@ -63,11 +61,8 @@
<RelativeLayout
android:id="@+id/debug"
android:layout_width="0px"
android:layout_height="wrap_content"
app:layout_constraintEnd_toStartOf="@+id/feedback"
app:layout_constraintStart_toEndOf="@+id/check"
app:layout_constraintTop_toTopOf="parent">
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/ivDebugPanel"
@@ -89,11 +84,9 @@
<RelativeLayout
android:id="@+id/feedback"
android:layout_width="0px"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/debug"
app:layout_constraintTop_toTopOf="parent">
android:layout_marginStart="142px">
<ImageView
android:id="@+id/ivDebugFeedback"
@@ -112,10 +105,9 @@
android:text="@string/debug_panel_fb"
android:textColor="@color/color_FFA7B6F0"
android:textSize="32px" />
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<TextView
android:layout_width="84px"

File diff suppressed because it is too large Load Diff