<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/white"/>
<corners android:radius="10dp"/>
</shape>
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:id="@+id/main_tv_location_filter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:layout_marginTop="12dp"
android:text="내배캠동"
android:textSize="20dp"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/main_iv_arrow_down"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_marginStart="4dp"
android:src="@drawable/icon_arrow_down"
app:layout_constraintBottom_toBottomOf="@id/main_tv_location_filter"
app:layout_constraintStart_toEndOf="@id/main_tv_location_filter"
app:layout_constraintTop_toTopOf="@id/main_tv_location_filter" />
<ImageView
android:id="@+id/main_iv_alarm"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="12dp"
android:src="@drawable/icon_alarm"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/main_recycler_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="12dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/main_tv_location_filter" />
</androidx.constraintlayout.widget.ConstraintLayout>
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="130dp">
<ImageView
android:id="@+id/item_iv_image"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginStart="12dp"
android:background="@drawable/rounded_image_shape"
android:clipToOutline="true"
android:scaleType="centerCrop"
android:src="@drawable/sample1"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/item_tv_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="12dp"
android:ellipsize="end"
android:maxLines="2"
android:text="산진 한 달 된 선풍기 팝니다."
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/item_iv_image"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/item_tv_location"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="서울 서대문구 창전동"
android:textColor="@color/gray"
android:textSize="15sp"
app:layout_constraintStart_toEndOf="@id/item_iv_image"
app:layout_constraintTop_toBottomOf="@id/item_tv_title" />
<TextView
android:id="@+id/item_tv_price"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="150,000"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintStart_toEndOf="@id/item_iv_image"
app:layout_constraintTop_toBottomOf="@id/item_tv_location" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12dp"
android:layout_marginBottom="12dp"
android:gravity="center"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent">
<ImageView
android:id="@+id/item_iv_comments"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/icon_comments"
app:tint="@color/gray" />
<TextView
android:id="@+id/item_tv_comments"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="25"
android:textColor="@color/gray" />
<ImageView
android:id="@+id/item_iv_heart"
android:layout_width="24dp"
android:layout_height="24dp"
android:padding="1dp"
android:src="@drawable/icon_empty_heart"
app:tint="@color/gray" />
<TextView
android:id="@+id/item_tv_heart"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="13"
app:layout_constraintStart_toEndOf="@id/item_iv_heart" />
</LinearLayout>
<!-- <ImageView-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="0.5dp"-->
<!-- android:background="@color/gray"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent" />-->
</androidx.constraintlayout.widget.ConstraintLayout>