|
@@ -3,24 +3,67 @@
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" >
|
|
|
|
|
|
<data >
|
|
|
+ <variable
|
|
|
+ name="vm"
|
|
|
+ type="com.quansu.heifengwuliu.vmodel.OwnerImgVModel" />
|
|
|
|
|
|
</data >
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:orientation="vertical" >
|
|
|
+ android:gravity="center"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ android:orientation="horizontal" >
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/img"
|
|
|
- android:layout_width="match_parent"
|
|
|
+ android:layout_width="128dp"
|
|
|
android:src="@drawable/img_bg"
|
|
|
android:scaleType="centerCrop"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ app:url="@{vm.url}"
|
|
|
+ android:layout_height="58dp">
|
|
|
|
|
|
</ImageView>
|
|
|
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_marginStart="34dp"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_weight"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ tools:text="载重:4.5吨"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:textColor="#545556"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout >
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_length"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ tools:text="长宽高:5.2*2.1*2米"
|
|
|
+ android:text="@{vm.name}"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:textColor="#545556"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_volume"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ tools:text="载货体积:21.8方"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:text="@{@string/cargo_volume+vm.weight}"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:textColor="#545556"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout >
|
|
|
</layout >
|