<?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.application.zhangshi_app_android.bean.IncomeAndExpensesBean" />
|
</data>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
>
|
<androidx.cardview.widget.CardView
|
android:id="@+id/cardView"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_margin="@dimen/dp_2"
|
app:cardCornerRadius="@dimen/dp_10"
|
app:cardBackgroundColor="@color/color_card_pink"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/layout_title"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_40"
|
android:gravity="center_vertical">
|
|
<TextView
|
android:id="@+id/textView2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="24dp"
|
android:text="@{bean.type==0?`基金`:`台账`}"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_16"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
tools:text="房产证" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerInParent="true"
|
android:gravity="center"
|
android:text="@{bean.price}"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_16"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
tools:text="张三" />
|
|
<TextView
|
android:id="@+id/tv_time"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.usePeople}"
|
android:textColor="@color/black"
|
android:textSize="16sp"
|
android:layout_marginEnd="20dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
tools:text="2019-01-12" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<LinearLayout
|
android:id="@+id/layout_content"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:paddingHorizontal="@dimen/dp_24"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="@dimen/dp_6"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="序号:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{String.valueOf(bean.id)}"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="@dimen/dp_6"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="时间:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.createTime}"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="@dimen/dp_6"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="用途:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.useFor}"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="@dimen/dp_6"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="现金/自动划扣:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.kind==0?`现金`:`自动划扣`}"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="@dimen/dp_6"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="余额:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.balance}"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="@dimen/dp_6"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="备注:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.remark}"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
</LinearLayout>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="@dimen/dp_6"
|
android:text="电子文件:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_12"
|
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="@dimen/dp_15"
|
>
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/rv_image"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
tools:listitem="@layout/item_image"
|
tools:itemCount="3"
|
/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>
|
</layout>
|