"app/src/main/assets/dist/js/chunk-vendors.cab2cbac.js" did not exist on "625086b02ff97b4536de13a1bedd656b299bac58"
Commit 9968f320 authored by p x's avatar p x
Browse files

使用模拟数据调通界面

parent 59b1b616
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="10dp"/>
<stroke android:width="1dp" android:color="#96FB5344"/>
<solid android:color="#ffffff"/>
</shape>
\ No newline at end of file
......@@ -115,7 +115,8 @@
android:id="@+id/bt_vehinfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="获取车辆信息" />
android:text="获取车辆信息"
android:visibility="gone"/>
<Button
......
......@@ -4,9 +4,9 @@
<data>
<variable
name="vm"
type="com.sd.cavphmi.viewmodels.MainVm" />
<!-- <variable-->
<!-- name="vm"-->
<!-- type="com.sd.cavphmi.viewmodels.MainVm" />-->
</data>
......@@ -20,8 +20,6 @@
<!-- 车辆仪表-->
<FrameLayout
android:id="@+id/map_car_pan"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_width="@dimen/map_left_top_widget"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_10"
......@@ -34,21 +32,23 @@
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!-- 模拟气泡-->
<ImageView
android:id="@+id/view_populer"
android:layout_width="200dp"
android:layout_height="30dp"
android:layout_marginBottom="10dp"
android:layout_alignParentRight="true"
android:layout_above="@id/map_car_pan"
/>
<!-- 预警气泡 从别的醒目扣过来的,就复用这个吧-->
<fragment
android:id="@+id/earlyWarnFragment"
android:name="com.sd.cavphmi.ui.fragment.WarnFragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="5dp" />
<LinearLayout
android:layout_marginTop="30dp"
android:id="@+id/ll_1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_marginTop="30dp"
android:orientation="vertical"
android:src="#907867">
......@@ -95,23 +95,16 @@
</LinearLayout>
<!-- 视频播放-->
<FrameLayout
android:id="@+id/video_frag"
android:layout_width="500dp"
android:layout_height="360dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginLeft="10dp"
android:layout_marginBottom="10dp"
android:background="@drawable/rect_no_col_10" />
<!-- <include-->
<!-- layout="@layout/order_detail"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_below="@+id/ll_head"-->
<!-- android:layout_marginLeft="15dp"-->
<!-- android:layout_marginTop="15dp"-->
<!-- bind:order="@{order}" />-->
</RelativeLayout>
......
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="bean"
type="com.sd.cavphmi.bean.WarningBean" />
</data>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/rect_early_red_10"
android:elevation="1dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingHorizontal="8dp"
android:paddingVertical="5dp">
<!-- android:scaleType="centerInside" android:adjustViewBounds="true"-->
<ImageView
android:layout_width="@dimen/dp_25"
android:layout_height="@dimen/dp_25"
android:scaleType="centerInside"
app:showEarlyTipImg="@{bean.img}"
tools:src="@drawable/chao_su" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{bean.tipStr}"
android:textColor="@color/text_black"
android:textSize="12sp"
android:layout_marginLeft="3dp"
tools:text="已超速,请减速行驶" />
</LinearLayout>
</layout>
\ No newline at end of file
......@@ -5,9 +5,9 @@
<data>
<!-- <variable-->
<!-- name="vm"-->
<!-- type="com.ltzw.adasdriver.viewmodels.flag.CarPanelVM" />-->
<variable
name="vm"
type="com.sd.cavphmi.viewmodels.CarPanelVM" />
<variable
name="cpBean"
......@@ -131,6 +131,7 @@
android:layout_width="@dimen/dp_40"
android:layout_height="wrap_content"
android:max="100"
app:showProgress="@{cpBean.remainSoc}"
android:minHeight="8dp"
android:paddingVertical="0dp"
tools:progress="50" />
......
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.sd.cavphmi.ui.view.RoadWarn
android:id="@+id/roadWarn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" />
</LinearLayout>
</layout>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment