<?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="viewModel"
|
type="com.application.zhangshi_app_android.ui.function.TourismDetailActivityViewModel"
|
/>
|
</data>
|
|
<androidx.cardview.widget.CardView
|
android:id="@+id/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"
|
>
|
<LinearLayout
|
android:id="@+id/layout_title"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:gravity="center_vertical"
|
>
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
>
|
<androidx.appcompat.widget.AppCompatTextView
|
android:id="@+id/tv_date"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="#FF000000"
|
android:textSize="20sp"
|
android:text="@={bean.date}"
|
android:background="@null"
|
android:clickable="@{viewModel.typeLiveData}"
|
tools:text="5月1日"
|
android:textColorHint="#6b000000"
|
android:ellipsize="end"
|
android:maxLines="1"
|
app:autoSizeTextType="uniform"
|
app:autoSizeMaxTextSize="20sp"
|
app:autoSizeMinTextSize="16sp"
|
/>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:visibility="@{viewModel.typeLiveData}"
|
/>
|
</LinearLayout>
|
<View
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
/>
|
<LinearLayout
|
android:id="@+id/layout_add_delete"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:gravity="center"
|
android:layout_marginStart="10dp"
|
android:visibility="@{viewModel.typeLiveData}"
|
>
|
<ImageView
|
android:id="@+id/iv_delete"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_delete_tourism"
|
/>
|
<ImageView
|
android:id="@+id/iv_add"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:background="@drawable/ic_tourism_add"
|
/>
|
</LinearLayout>
|
<ImageView
|
android:id="@+id/iv_fold"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_fold"
|
android:layout_marginStart="10dp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/layout_content"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:paddingBottom="15dp"
|
>
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
>
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/rv_consume_record"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
tools:listitem="@layout/item_consume_record"
|
/>
|
</RelativeLayout>
|
<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"
|
/>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
>
|
|
<EditText
|
android:id="@+id/et_daily_money"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:inputType="number"
|
android:text="@={bean.dailyMoney}"
|
android:textColor="#DE000000"
|
android:textColorHint="#6b000000"
|
android:textSize="14sp"
|
android:enabled="false"
|
android:backgroundTint="#6B000000"
|
tools:text="1490"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
/>
|
<View
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:background="@color/color_non_editable"
|
app:layout_constraintTop_toTopOf="@id/et_daily_money"
|
app:layout_constraintStart_toStartOf="@id/et_daily_money"
|
app:layout_constraintBottom_toBottomOf="@id/et_daily_money"
|
app:layout_constraintEnd_toEndOf="@id/et_daily_money"
|
android:visibility="@{viewModel.typeLiveData}"
|
/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</LinearLayout>
|
</LinearLayout>
|
|
|
</androidx.cardview.widget.CardView>
|
</layout>
|