Feature module

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

implementation ("com.poqstudio:content.launchpages:$VERSION_NAME")

Architecture

Launch pages general architecture
Launch pages general architecture

  • LaunchPagesActivity is the entry point to the Onboarding screen.
  • LaunchPagesFragment handles the action bar menu items (edit/done button).
  • LaunchPagesView controls the visibility of the elements in the screen. It also initialises LaunchPagesPageAdapter with the information received from LaunchPagesViewModel and handles the navigation of the screen.
  • LaunchPagesViewModel is the main ViewModel that coordinates the rest of the ViewModels.
  • BaseLaunchPagesPageFragment is the fragment for each page in the ViewPager.
  • OnboardinLaunchPagesPageViewModel is the ViewModel of the page.

Views breakdown

ViewXMLAlias
LaunchPagesActivityactivity_launch_pages.xml
LaunchPagesFragmentfragment_launch_pages.xml
LaunchPagesViewlaunch_pages_view.xmllaunchPagesViewLayout
AccountLaunchPagesPageFragment background imageaccount_launch_pages_page_with_background_image_template.xmlaccountLaunchPagesPageWithBackgroundImageTemplateLayout
AccountLaunchPagesPageFragment top imageaccount_launch_pages_page_with_top_image_template.xmlaccountLaunchPagesPageWithTopImageTemplateLayout
DefaultLaunchPagesPageFragment background imagedefault_launch_pages_page_with_background_image_template.xmldefaultLaunchPagesPageWithBackgroundImageTemplateLayout
DefaultLaunchPagesPageFragment top imagedefault_launch_pages_page_with_top_image_template.xmldefaultLaunchPagesPageWithTopImageTemplateLayout
ForceUpdateLaunchPagesPageFragment background imageforce_update_launch_pages_page_with_background_image_template.xmlforceUpdateLaunchPagesPageWithBackgroundImageTemplateLayout
ForceUpdateLaunchPagesPageFragment top imageforce_update_launch_pages_page_with_top_image_template.xmlforceUpdateLaunchPagesPageWithTopImageTemplateLayout
GetStartedLaunchPagesPageFragment background imageget_started_launch_pages_page_with_background_image_template.xmlgetStartedLaunchPagesPageWithBackgroundImageTemplateLayout
GetStartedLaunchPagesPageFragment top imageget_started_launch_pages_page_with_top_image_template.xmlgetStartedLaunchPagesPageWithTopImageTemplateLayout
LocationLaunchPagesPageFragment background imagelocation_launch_pages_page_with_background_image_template.xmllocationLaunchPagesPageWithBackgroundImageTemplateLayout
LocationLaunchPagesPageFragment top imagelocation_launch_pages_page_with_top_image_template.xmllocationLaunchPagesPageWithTopImageTemplateLayout
MaintenanceLaunchPagesPageFragment background imagemaintenance_launch_pages_page_with_background_image_template.xmlmaintenanceLaunchPagesPageWithBackgroundImageTemplateLayout
MaintenanceLaunchPagesPageFragment top imagemaintenance_launch_pages_page_with_top_image_template.xmlmaintenanceLaunchPagesPageWithTopImageTemplateLayout
NotificationsLaunchPagesPageFragment background imagenotifications_launch_pages_page_with_background_image_template.xmlnotificationsLaunchPagesPageWithBackgroundImageTemplateLayout
NotificationsLaunchPagesPageFragment top imagenotifications_launch_pages_page_with_top_image_template.xmlnotificationsLaunchPagesPageWithTopImageTemplateLayout

Styles breakdown

The recommended way of styling Launch pages 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 Launch pages screen are shown in the images below:

Style elements in the Launch pages screens
Style elements in the Launch pages screens