maui
maui copied to clipboard
[net9.0][Enhancement][Android] Added Platform specific ripple color
Description of Change
Right now the only way to set a ripple color for buttons is to use custom mappers or platform specific code. But, for image buttons there is currently no way to do anything.
Public API Changes
<Button
xmlns:android="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls"
android:Button.RippleColor="Green"/>
<ImageButton
xmlns:android="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls"
android:ImageButton.RippleColor="Green"/>
Fixes https://github.com/dotnet/maui/issues/22805
https://github.com/user-attachments/assets/928f0db9-bdfc-4da3-bcf1-6abc9ae73003
Notes
I will remove the pragma warning disable RS0016 if this PR makes sense