|
|
|
@ -2,60 +2,73 @@
|
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/grey">
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:layout_width="200dp"
|
|
|
|
|
android:layout_height="280dp"
|
|
|
|
|
android:layout_marginStart="15dp"
|
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
|
android:layout_marginEnd="15dp"
|
|
|
|
|
android:layout_marginBottom="15dp"
|
|
|
|
|
android:background="@color/white">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_image"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
app:cardUseCompatPadding="true"
|
|
|
|
|
app:cardCornerRadius="10dp"
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:layout_width="200dp"
|
|
|
|
|
android:layout_height="200dp"
|
|
|
|
|
android:scaleType="fitXY" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_content"
|
|
|
|
|
android:layout_width="180dp"
|
|
|
|
|
android:layout_height="25dp"
|
|
|
|
|
android:layout_below="@+id/iv_image"
|
|
|
|
|
android:layout_marginStart="13dp"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
|
android:layout_height="280dp"
|
|
|
|
|
android:layout_marginStart="15dp"
|
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
|
android:layout_marginEnd="15dp"
|
|
|
|
|
android:layout_marginBottom="15dp"
|
|
|
|
|
android:textSize="20dp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/str"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_below="@+id/tv_content"
|
|
|
|
|
android:layout_alignLeft="@+id/tv_content"
|
|
|
|
|
android:text="价格: "
|
|
|
|
|
android:textColor="@color/red" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_price"
|
|
|
|
|
android:layout_width="100dp"
|
|
|
|
|
android:layout_height="18dp"
|
|
|
|
|
android:layout_below="@+id/tv_content"
|
|
|
|
|
android:layout_toRightOf="@+id/str"
|
|
|
|
|
android:textColor="@color/red" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
|
<!-- android:id="@+id/iv_delete"-->
|
|
|
|
|
<!-- android:layout_width="30dp"-->
|
|
|
|
|
<!-- android:layout_height="30dp"-->
|
|
|
|
|
<!-- android:layout_alignEnd="@+id/tv_content"-->
|
|
|
|
|
<!-- android:layout_alignBottom="@+id/tv_price"-->
|
|
|
|
|
<!-- android:src="@drawable/ic_baseline_close_24" />-->
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
android:background="@color/white">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_image"
|
|
|
|
|
android:layout_width="200dp"
|
|
|
|
|
android:layout_height="200dp"
|
|
|
|
|
android:scaleType="fitXY" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_content"
|
|
|
|
|
android:layout_width="180dp"
|
|
|
|
|
android:layout_height="25dp"
|
|
|
|
|
android:layout_below="@+id/iv_image"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
|
android:layout_marginBottom="15dp"
|
|
|
|
|
android:textSize="20dp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/str"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_below="@+id/tv_content"
|
|
|
|
|
android:layout_alignLeft="@+id/tv_content"
|
|
|
|
|
android:text="@string/str"
|
|
|
|
|
android:textColor="@color/red" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_price"
|
|
|
|
|
android:layout_width="100dp"
|
|
|
|
|
android:layout_height="18dp"
|
|
|
|
|
android:layout_below="@+id/tv_content"
|
|
|
|
|
android:layout_toRightOf="@+id/str"
|
|
|
|
|
android:textColor="@color/red" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
|
<!-- android:id="@+id/iv_delete"-->
|
|
|
|
|
<!-- android:layout_width="30dp"-->
|
|
|
|
|
<!-- android:layout_height="30dp"-->
|
|
|
|
|
<!-- android:layout_alignEnd="@+id/tv_content"-->
|
|
|
|
|
<!-- android:layout_alignBottom="@+id/tv_price"-->
|
|
|
|
|
<!-- android:src="@drawable/ic_baseline_close_24" />-->
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|