PriceView

PriceView
PriceView

PriceView shows the provided Pricing with the current currency selected.

Anatomy

PriceView anatomy
PriceView anatomy

  1. Regular price
  2. Special/now price in special price
  3. Regular/was price in special price
  4. Regular price range
  5. Special/now price in special price range
  6. Regular/was price in special price range

Special prices are coloured with color_primary_base from App Styling. PriceView uses an alias called priceViewLayout pointing to price_view.xml.

Usage

You can set it up in code or in the layout:

In code:

fun setUp(pricing: Pricing)
In the layout:
<com.poqstudio.core.ui.view.price.PoqPriceView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:pricing="@{viewModel.pricing}" />