Hello,
where I can learn the part of the specific android code . The code that start with
Android.Content.Res.ColorStateList.ValueOf(Colors.Transparent.ToAndroid());
This part code from the native android, you can find ColorStateList from the google document.
However, this ColorStateList document set different colors for different states in the xml.
Based on your code, you have single color and single state, you can set Microsoft.Maui.Graphics.Colors and convert color for android platform by ToAndroid()
.
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.