fix ui bug and add log
This commit is contained in:
@@ -55,7 +55,14 @@ class MoGoHmiFragment : MvpFragment<MoGoWarningContract.View?, WaringPresenter?>
|
||||
}
|
||||
|
||||
override fun vipIdentification(visible: Boolean) {
|
||||
flVipIdentificationView.visibility = if (visible) View.VISIBLE else View.GONE
|
||||
ThreadUtils.runOnUiThread {
|
||||
Logger.d(TAG, "vipIdentification")
|
||||
if (visible) {
|
||||
flVipIdentificationView.visibility = View.VISIBLE
|
||||
} else {
|
||||
flVipIdentificationView.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun createCoverage(activity: FragmentActivity?, containerId: Int?): Fragment? {
|
||||
|
||||
@@ -29,8 +29,9 @@
|
||||
android:layout_width="@dimen/module_vip_width"
|
||||
android:layout_height="@dimen/module_vip_height"
|
||||
android:layout_marginLeft="@dimen/module_vip_margin_left"
|
||||
app:layout_constraintLeft_toRightOf="@+id/flSpeedChartView"
|
||||
app:layout_constraintTop_toTopOf="@+id/flSpeedChartView" />
|
||||
android:visibility="gone"
|
||||
app:layout_constraintLeft_toRightOf="@+id/viewSpeedChart"
|
||||
app:layout_constraintTop_toTopOf="@+id/viewSpeedChart" />
|
||||
|
||||
<com.mogo.eagle.core.function.hmi.ui.widget.AutoPilotStatusView
|
||||
android:id="@+id/viewAutopilotStatus"
|
||||
@@ -97,11 +98,10 @@
|
||||
android:id="@+id/ivCameraIcon"
|
||||
android:layout_width="130px"
|
||||
android:layout_height="130px"
|
||||
app:layout_constraintEnd_toStartOf="@id/viewTrafficLightVr"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:layout_marginTop="38px"
|
||||
android:layout_marginEnd="30px"
|
||||
android:background="@drawable/icon_camera_nor"
|
||||
tools:visibility="visible"
|
||||
/>
|
||||
app:layout_constraintEnd_toStartOf="@id/viewTrafficLightVr"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:visibility="visible" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -11,7 +11,6 @@
|
||||
android:layout_height="@dimen/dp_104"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/v2x_vip_identification_vr"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user