Customization

Customization is achieved through Android’s resourcing system. This means that all resources of the library can be overridden by providing resources with the same name in the application.

When overriding the Health SDK’s styles make sure to keep their name and parent style the same. You can see examples of overridden styles in the example app.

Material components are used in the ReviewFragment and those components will pick attributes of the hosting activity if it uses a material theme.

Dark Mode

To enable and customise dark mode you will need to do the following:

  1. Set the parent of the Root.GiniHealth style to a DayNight theme as described here:

    <style name="Root.GiniHealth" parent="Theme.MaterialComponents.DayNight"/>
    
  2. Override the Gini Health SDK’s styles, colors and icons for dark mode in night-qualified resource directories (i.e., values-night).