Hello,
You can use it directly,
For example, if I create a xml file in the Resources\drawable\
, I can use it in the handler directly, you can use layout or other xml resources as well.
Microsoft.Maui.Handlers.FlyoutViewHandler.Mapper.AppendToMapping("MyCustomization", (handler, view) =>
{
#if ANDROID
handler.PlatformView.SetBackgroundResource(Resource.Drawable.expand_collapse);
#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.