Feature module
The wishlist v3 feature module includes all the presentation logic required to display wishlist screen. If you need to include this module, add it to your build.gradle
:
implementation ("com.poqstudio:catalogue.wishlistv3:$VERSION_NAME")
Architecture
WishlistActivity
is the entry point to the wishlist screen.WishlistFragment
is the main fragment for the wishlist screen.WishlistView
controls the visibility of the elements in the screen. It also initialisesWishlistRecyclerViewAdapter
with the information received fromWishlistViewModel
and handles the navigation of the screen.WishlistViewModel
is the main ViewModel that coordinates the rest of the ViewModels.WishlistItemViewModel
is ViewModel for the wishlist items.WishlistNumberOfItemsViewModel
is ViewModel for the number of items item.
Views breakdown
The Wishlist screen is broken down into different views:
View | XML | Alias |
---|---|---|
WishlistActivity | activity_wishlist_v3.xml | |
WishlistFragment | wishlist_v3_fragment.xml | |
WishlistView | wishlist_v3_view.xml | wishlistV3ViewLayout |
UiWishlistItemViewHolder | item_wishlist_v3.xml | itemWishlistV3Layout |
WishlistNumberOfItemsViewHolder | item_wishlist_number_of_items.xml | itemWishlistNumberOfItemsLayout |
ShimmerWishlistView | shimmer_wishlist_v3.xml | shimmerWishlistV3Layout |
Styles breakdown
The recommended way of styling Wishlist screen is by using App Styling. If you need more granular customisation, you can override the specific style and provide your own. The styles for the Wishlist screen are shown in the image below: