Skip to content

Conversation

@SyedAbdulAzeemSF4852
Copy link
Contributor

Description of Change

This pull request introduces support for Material Design 3 radio buttons on Android, making the radio button UI consistent with the latest Material guidelines when the Material3 feature is enabled. The changes ensure that the appropriate handler is used depending on the runtime feature flag.

Android Material Design 3 support:

  • Conditional registration of radio button handlers in AppHostBuilderExtensions.cs, using MaterialRadioButtonHandler when Material3 is enabled, and falling back to the default RadioButtonHandler otherwise.
  • Removal of the unconditional registration of the default RadioButtonHandler to prevent duplicate handler assignments.

Handler implementation:

  • Addition of the new MaterialRadioButtonHandler class in RadioButtonHandler.Android.cs, which creates a MaterialRadioButton platform view with the correct theme wrapper and disables sound effects for consistency.

Material Design Spec : RadioButton

Issues Fixed

Fixes #33467

Output

Material2 Material3

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jan 12, 2026
@dotnet-policy-service
Copy link
Contributor

Hey there @@SyedAbdulAzeemSF4852! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jan 12, 2026
@sheiksyedm sheiksyedm marked this pull request as ready for review January 12, 2026 08:49
Copilot AI review requested due to automatic review settings January 12, 2026 08:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements Material Design 3 support for RadioButton on Android, making the radio button UI consistent with Material3 guidelines when the runtime feature is enabled. The implementation conditionally registers the appropriate handler based on the RuntimeFeature.IsMaterial3Enabled flag.

Changes:

  • Added MaterialRadioButtonHandler class that creates MaterialRadioButton platform views with proper Material3 theming
  • Implemented conditional handler registration in AppHostBuilderExtensions.cs to use Material3 handler when feature is enabled
  • Removed unconditional RadioButton handler registration to prevent duplicate assignments

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Core/src/Handlers/RadioButton/RadioButtonHandler.Android.cs Added MaterialRadioButtonHandler class that extends RadioButtonHandler and creates MaterialRadioButton with Material3 theming
src/Controls/src/Core/Hosting/AppHostBuilderExtensions.cs Added conditional handler registration for Android using RuntimeFeature.IsMaterial3Enabled flag; removed duplicate unconditional registration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-radiobutton RadioButton, RadioButtonGroup 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 RadioButton

2 participants