Skip to content

Conversation

@Dhivya-SF4094
Copy link
Contributor

Description of Change

This pull request introduces support for a Material Design 3 styled ActivityIndicator on Android, allowing the app to use the new Material component when the Material3 feature is enabled. The main changes involve conditional registration of a new handler, the implementation of a MaterialActivityIndicatorHandler, and the addition of a custom MaterialActivityIndicator control for Android.

Material3 ActivityIndicator support for Android:

  • Added a new MaterialActivityIndicatorHandler class that extends ActivityIndicatorHandler and creates a MaterialActivityIndicator (the new Material3 control) as its platform view. It also customizes layout behavior to ensure proper sizing and centering.
  • Implemented the MaterialActivityIndicator control in MaterialActivityIndicator.cs, inheriting from CircularProgressIndicator and overriding measurement logic to ensure the indicator remains square and properly sized according to Material guidelines.

Handler registration logic:

  • Updated the AddControlsHandlers extension method to conditionally register either MaterialActivityIndicatorHandler or the classic ActivityIndicatorHandler for ActivityIndicator, based on whether Material3 is enabled on Android.

Issues Fixed

Fixes #33479

Material3 Spec ActivityIndicator

Output Screenshot

Material 2  Material 3 
Material2_ActivityIndicator.mov
 
Material3_ActivityIndicator.mov

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jan 12, 2026
@Tamilarasan-Paranthaman Tamilarasan-Paranthaman added t/enhancement ☀️ New feature or request platform/android community ✨ Community Contribution area-controls-activityindicator ActivityIndicator material3 and removed t/enhancement ☀️ New feature or request labels Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-activityindicator ActivityIndicator community ✨ Community Contribution material3 partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement material3 support for ActivityIndicator

2 participants