mirror of
https://github.com/shaulascr/ecommerce_serang.git
synced 2025-08-16 03:47:24 +00:00
171 lines
7.2 KiB
XML
171 lines
7.2 KiB
XML
<?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:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".ui.product.storeDetail.StoreDetailActivity">
|
|
|
|
<include
|
|
android:id="@+id/searchContainer"
|
|
layout="@layout/view_search_back"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<!-- Store Information -->
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/storeInfoContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/blue_50"
|
|
android:layout_marginTop="16dp"
|
|
android:padding="24dp"
|
|
app:layout_constraintTop_toBottomOf="@id/searchContainer">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivStoreImage"
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:background="@drawable/circle_background"
|
|
android:scaleType="centerCrop"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:src="@drawable/placeholder_image" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvStoreName"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:textColor="@android:color/black"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/ivStoreImage"
|
|
app:layout_constraintTop_toTopOf="@id/ivStoreImage"
|
|
tools:text="SnackEnak" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvStoreType"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:textSize="14sp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/ivStoreImage"
|
|
app:layout_constraintTop_toBottomOf="@id/tvStoreName"
|
|
tools:text="Makanan Ringan" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/storeRatingContainer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="4dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintStart_toEndOf="@id/ivStoreImage"
|
|
app:layout_constraintTop_toBottomOf="@id/tvStoreType">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivStoreRatingStar"
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:src="@drawable/ic_star"
|
|
app:tint="@color/yellow" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvStoreRating"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:textSize="12sp"
|
|
android:textStyle="bold"
|
|
tools:text="5.0" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tvStoreLocation"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:textSize="12sp"
|
|
app:layout_constraintEnd_toStartOf="@id/tvActiveStatus"
|
|
app:layout_constraintStart_toEndOf="@id/ivStoreImage"
|
|
app:layout_constraintTop_toBottomOf="@id/storeRatingContainer"
|
|
tools:text="Kabupaten Serang" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvActiveStatus"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="4dp"
|
|
android:paddingEnd="4dp"
|
|
android:text="Aktif"
|
|
android:textColor="@android:color/black"
|
|
android:textSize="12sp"
|
|
app:layout_constraintBottom_toBottomOf="@id/tvStoreLocation"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/tvStoreLocation" />
|
|
|
|
<!-- <ImageButton-->
|
|
<!-- android:id="@+id/btnChevron"-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- android:background="?attr/selectableItemBackgroundBorderless"-->
|
|
<!-- android:contentDescription="More"-->
|
|
<!-- android:src="@drawable/ic_chevron_right"-->
|
|
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
|
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
|
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<com.google.android.material.divider.MaterialDivider
|
|
android:id="@+id/divider_product"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toBottomOf="@id/storeInfoContainer"/>
|
|
|
|
|
|
<!-- Tab Layout: TO DO implement after review -->
|
|
<!-- <com.google.android.material.tabs.TabLayout-->
|
|
<!-- android:id="@+id/tabLayout"-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- app:layout_constraintTop_toBottomOf="@id/storeInfoContainer"-->
|
|
<!-- app:tabIndicatorColor="@color/colorPrimary"-->
|
|
<!-- app:tabSelectedTextColor="@color/colorPrimary"-->
|
|
<!-- app:tabTextColor="@android:color/darker_gray">-->
|
|
|
|
<!-- <com.google.android.material.tabs.TabItem-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- android:text="Produk" />-->
|
|
|
|
<!-- <com.google.android.material.tabs.TabItem-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- android:text="Kategori" />-->
|
|
<!-- </com.google.android.material.tabs.TabLayout>-->
|
|
|
|
<!-- Products RecyclerView -->
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_products"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:orientation="vertical"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
app:layout_constraintTop_toBottomOf="@id/divider_product"
|
|
tools:itemCount="5"
|
|
tools:listitem="@layout/item_section_horizontal" />
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |