Feature module

The swipe to like feature module includes all the presentation logic required to display swipe to like screen. If you need to include this module, add it to your build.gradle:

implementation ("com.poqstudio:catalogue.swipetolike:$VERSION_NAME")

Architecture

The general architecture of the swipe to like screen
The general architecture of the swipe to like screen

  • SwipeToLikeActivity is the entry point to the swipe to like screen.
  • SwipeToLikeFragment is the main fragment for the swipe to like screen.
  • SwipeToLikeView is the main view for the swipe to like screen.
  • SwipeToLikeViewModel is the main ViewModel which extends ProductListViewModel.
  • ProductList feature module swipe to like reuses all the logic build in the ProductList feature.

Views breakdown

The swipe to like screen is broken down into different views:

The Views in the swipe to like screen
The Views in the swipe to like screen

ViewXMLAlias
SwipeToLikeActivityactivity_swipe_to_like.xml
SwipeToLikeFragmentswipe_to_like_fragment.xml
SwipeToLikeViewswipe_to_like_view.xmlswipeToLikeViewLayout
SwipeToLikeViewHolderitem_swipe_to_like_view.xmlitemSwipeToLikeLayout
ShimmerSwipeToLikeViewshimmer_swipe_to_like_view.xmlshimmerSwipeToLikeLayout

Styles breakdown

The recommended way of styling swipe to like 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 swipe to screen are shown in the image below:

Style elements in the swipe to like screen
Style elements in the swipe to like screen