PriceView
PriceView shows the provided Pricing with the current currency selected.
Anatomy
- Regular price
- Special/now price in special price
- Regular/was price in special price
- Regular price range
- Special/now price in special price range
- 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}" />