Hello,
Is there any way to change the colors of the ripple effect on the buttons?
Yes. This ripple effect for button just happens on the android platform, you can use MAUI Handler to change it, you can refer to following code. I change color of ripple to Green for testing. By the way, if you want to remove the ripple effect like other platforms, you can set the color to transparent.
Microsoft.Maui.Handlers.ButtonHandler.Mapper.AppendToMapping("MyCustomization", (handler, view) =>
{
#if ANDROID
if (handler.PlatformView.Background is Android.Graphics.Drawables.RippleDrawable ripple )
{
ripple.SetColor(Android.Content.Res.ColorStateList.ValueOf(Android.Graphics.Color.Green));
};
#endif
});
Best Regards, Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.