<?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.DailyConsumeRecordBean"
|
/>
|
<variable
|
name="isFold"
|
type="boolean"
|
/>
|
</data>
|
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
app:cardBackgroundColor="@color/white"
|
app:cardCornerRadius="10dp"
|
app:cardElevation="3dp"
|
android:layout_margin="2dp"
|
tools:layout_height="wrap_content"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:paddingHorizontal="5dp"
|
android:paddingBottom="15dp"
|
>
|
<LinearLayout
|
android:id="@+id/layout_title"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:gravity="center_vertical"
|
>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:textColor="#FF000000"
|
android:textSize="20sp"
|
android:text="@{bean.date}"
|
tools:text="5月1日"
|
/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_tourism_add"
|
/>
|
<ImageView
|
android:id="@+id/iv_fold"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@{isFold?@drawable/ic_fold:@drawable/ic_unfold}"
|
android:layout_marginStart="10dp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/layout_content"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
>
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/rv_consume_record"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="每日金额"
|
android:textColor="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
android:layout_marginTop="10dp"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.dailyMoney}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
|
|
</androidx.cardview.widget.CardView>
|
</layout>
|