Android Theming Overview

Theming system and visual customization for the Agentforce Android SDK.

Theming Classes 

Theme System 

Color System 

  • Primary Colors: Brand colors and primary UI elements
  • Secondary Colors: Accent colors and secondary elements
  • Semantic Colors: Success, warning, error, and info colors
  • Surface Colors: Background and surface element colors

Typography 

  • Font Families: Custom font support and system fonts
  • Font Scales: Responsive typography scaling
  • Text Styles: Headings, body text, and label styles

Spacing 

  • Consistent Spacing: Standardized spacing values
  • Responsive Design: Adaptive spacing for different screen sizes
  • Layout System: Grid and component spacing

Customization 

Theme Application 

1val themeManager = AgentforceThemeManager(context)
2themeManager.setColors(customColors)
3themeManager.setTypography(customTypography)
4themeManager.setSpacing(customSpacing)

Dynamic Theming 

  • Light/Dark Mode: Automatic theme switching
  • Brand Colors: Custom brand color integration
  • Accessibility: High contrast and accessibility support

Next Steps