From 7aac3c7e803a596958f301aa74805e9d829a03d7 Mon Sep 17 00:00:00 2001 From: xuxinchao Date: Fri, 25 Oct 2024 19:34:35 +0800 Subject: [PATCH] =?UTF-8?q?[6.7.0]=E6=B6=88=E6=81=AF=E7=9B=92=E5=AD=90?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=86=85=E5=AE=B9=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eagle/core/function/hmi/bone/tab/MsgBoxTabView.kt | 9 ++++++++- .../src/main/res/layout/view_bone_tab.xml | 4 +++- .../src/main/res/layout/view_msg_box_tab.xml | 1 - 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/bone/tab/MsgBoxTabView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/bone/tab/MsgBoxTabView.kt index a101bb1135..c252138bf1 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/bone/tab/MsgBoxTabView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/bone/tab/MsgBoxTabView.kt @@ -154,7 +154,7 @@ class MsgBoxTabView @JvmOverloads constructor( } - fun notifyData(){ + private fun notifyData(){ //获取当前Tab选择 when(MsgBoxConfig.getUserRecord()){ //通知消息 @@ -341,4 +341,11 @@ class MsgBoxTabView @JvmOverloads constructor( isShowSummary = inOrder } + override fun onVisibilityChanged(changedView: View, visibility: Int) { + super.onVisibilityChanged(changedView, visibility) + if(visibility == View.VISIBLE){ + notifyData() + } + } + } \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_bone_tab.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_bone_tab.xml index 1039d942c8..134b7830f9 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_bone_tab.xml +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_bone_tab.xml @@ -35,7 +35,9 @@ android:visibility="gone" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toTopOf="@+id/tabSwitchCarInfo" + /> \ No newline at end of file