Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <com.google.android.material.card.MaterialCardView 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="wrap_content"
- android:layout_marginBottom="18dp"
- app:cardCornerRadius="8dp"
- app:cardElevation="0dp"
- app:strokeColor="@color/grey26"
- app:strokeWidth="1dp">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingBottom="12dp">
- <ImageView
- android:id="@+id/image"
- android:layout_width="match_parent"
- android:layout_height="150dp"
- android:scaleType="fitXY"
- app:layout_constraintTop_toTopOf="parent"
- tools:src="@color/black" />
- <TextView
- android:id="@+id/close"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:fontFamily="@font/poppins_regular"
- android:text="@string/close"
- android:textColor="@color/white2"
- android:textSize="24sp"
- android:visibility="gone"
- app:layout_constraintBottom_toBottomOf="@id/image"
- app:layout_constraintEnd_toEndOf="@id/image"
- app:layout_constraintStart_toStartOf="@id/image"
- app:layout_constraintTop_toTopOf="@id/image" />
- <com.google.android.material.card.MaterialCardView
- android:id="@+id/card_discount"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="4dp"
- android:layout_marginTop="4dp"
- app:cardBackgroundColor="@color/white_transparent_10"
- app:cardCornerRadius="4dp"
- app:cardElevation="0dp"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <TextView
- android:id="@+id/discount"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:drawablePadding="4dp"
- android:fontFamily="@font/poppins_medium"
- android:gravity="center"
- android:includeFontPadding="false"
- android:padding="4dp"
- android:textColor="@color/white"
- android:textSize="12sp"
- app:drawableStartCompat="@drawable/ic_discount"
- tools:text="$10.00 Off Delivery" />
- </com.google.android.material.card.MaterialCardView>
- <com.google.android.material.card.MaterialCardView
- android:id="@+id/card_rating"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="4dp"
- android:layout_marginTop="8dp"
- android:elevation="1dp"
- app:cardBackgroundColor="@color/white_transparent_10"
- app:cardCornerRadius="4dp"
- app:cardElevation="0dp"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/card_discount"
- app:layout_goneMarginTop="4dp">
- <TextView
- android:id="@+id/rating"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:drawablePadding="4dp"
- android:fontFamily="@font/poppins_medium"
- android:gravity="center"
- android:includeFontPadding="false"
- android:padding="4dp"
- android:textColor="@color/white"
- android:textSize="12sp"
- app:drawableStartCompat="@drawable/ic_star_rating"
- tools:text="4.0" />
- </com.google.android.material.card.MaterialCardView>
- <com.google.android.material.card.MaterialCardView
- android:id="@+id/card_status"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="4dp"
- android:layout_marginEnd="4dp"
- app:cardBackgroundColor="@color/green"
- app:cardCornerRadius="14dp"
- app:cardElevation="0dp"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <TextView
- android:id="@+id/status"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:fontFamily="@font/poppins_medium"
- android:paddingHorizontal="16dp"
- android:paddingVertical="4dp"
- android:textColor="@color/white"
- android:textSize="12sp"
- tools:text="Open" />
- </com.google.android.material.card.MaterialCardView>
- <TextView
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginHorizontal="12dp"
- android:layout_marginTop="12dp"
- android:fontFamily="@font/poppins_regular"
- android:textColor="@color/textBlack2"
- android:textSize="16sp"
- app:layout_constraintTop_toBottomOf="@id/image" />
- <TextView
- android:id="@+id/desc"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginHorizontal="12dp"
- android:layout_marginTop="4dp"
- android:fontFamily="@font/poppins_medium"
- android:textColor="@color/black"
- android:textSize="12sp"
- app:layout_constraintTop_toBottomOf="@id/title" />
- <View
- android:id="@+id/line"
- android:layout_width="match_parent"
- android:layout_height="2dp"
- android:layout_marginHorizontal="12dp"
- android:layout_marginTop="8dp"
- android:background="@drawable/dashed_line_horizontal"
- android:backgroundTint="@color/grey32"
- app:layout_constraintTop_toBottomOf="@id/desc" />
- <TextView
- android:id="@+id/delivery_cost"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="12dp"
- android:layout_marginTop="8dp"
- android:drawablePadding="8dp"
- android:fontFamily="@font/poppins_medium"
- android:includeFontPadding="false"
- android:textColor="@color/grey33"
- android:textSize="12sp"
- app:drawableStartCompat="@drawable/ic_delivery"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/line" />
- <TextView
- android:id="@+id/eta"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="6dp"
- android:layout_marginTop="8dp"
- android:drawablePadding="8dp"
- android:fontFamily="@font/poppins_medium"
- android:includeFontPadding="false"
- android:textColor="@color/black"
- android:textSize="12sp"
- app:drawableStartCompat="@drawable/ic_dot"
- app:layout_constraintStart_toEndOf="@id/delivery_cost"
- app:layout_constraintTop_toBottomOf="@id/line" />
- <LinearLayout
- android:id="@+id/layout_pickup_available"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="6dp"
- android:layout_marginTop="8dp"
- android:gravity="center"
- android:orientation="horizontal"
- android:visibility="gone"
- app:layout_constraintStart_toEndOf="@id/delivery_cost"
- app:layout_constraintTop_toBottomOf="@id/line">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/ic_dot" />
- <com.google.android.material.card.MaterialCardView
- android:id="@+id/card_pickup"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="6dp"
- app:cardBackgroundColor="@color/green_secondary"
- app:cardCornerRadius="4dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingHorizontal="4dp"
- android:fontFamily="@font/poppins_medium"
- android:includeFontPadding="false"
- android:text="@string/pickup_available"
- android:textColor="@color/green"
- android:textSize="12sp" />
- </com.google.android.material.card.MaterialCardView>
- </LinearLayout>
- </androidx.constraintlayout.widget.ConstraintLayout>
- </com.google.android.material.card.MaterialCardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement