<?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.MemoBean"
|
/>
|
</data>
|
|
<androidx.cardview.widget.CardView
|
android:id="@+id/cardView"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
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="10dp"
|
>
|
<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.happenTime}"
|
android:background="@null"
|
tools:text="2022-01-01"
|
android:textColorHint="#6b000000"
|
android:ellipsize="end"
|
android:maxLines="1"
|
app:autoSizeTextType="uniform"
|
app:autoSizeMaxTextSize="20sp"
|
app:autoSizeMinTextSize="16sp"
|
/>
|
<View
|
android:id="@+id/view_line"
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
/>
|
</LinearLayout>
|
<View
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
/>
|
<ImageView
|
android:id="@+id/iv_delete"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_delete_tourism"
|
android:layout_marginStart="10dp"
|
android:visibility="gone"
|
/>
|
<ImageView
|
android:id="@+id/iv_fold"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_fold"
|
android:layout_marginStart="15dp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/layout_content"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:paddingBottom="15dp"
|
>
|
<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"
|
/>
|
<EditText
|
android:id="@+id/et_content"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="@={bean.content}"
|
android:textColor="#DE000000"
|
android:textColorHint="#6b000000"
|
android:textSize="16sp"
|
android:backgroundTint="#6B000000"
|
tools:text="补办正文补办正文补办正文补办正文补办正补办正文补办正文补办正文补办正文补办正补办正文补办正文补办正文补办正文补办正补办正文补办正文补办正文补办正文补办正"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
|
|
</androidx.cardview.widget.CardView>
|
</layout>
|