Toast.Make shows .Net image #1200
-
How to display a toast without the .Net purple image? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Toast only displays text. Could you send a screenshot? |
Beta Was this translation helpful? Give feedback.
-
var toast = Toast.Make("Sample Toast", CommunityToolkit.Maui.Core.ToastDuration.Long); |
Beta Was this translation helpful? Give feedback.
-
I assume it’s a standard toast on Android 33. It displays the icon of your application so user understands which app sent toast. |
Beta Was this translation helpful? Give feedback.
-
Ok, fair enough. Is it possible to toast without the application icon or specify the icon? |
Beta Was this translation helpful? Give feedback.
-
Closed as answered |
Beta Was this translation helpful? Give feedback.
Hey @roysurles! I understand what you're asking, but, no, this is just how Toast works.
Here's the docs for Android showing the Toast API and its functionality: https://developer.android.com/guide/topics/ui/notifiers/toasts
Toast is implemented by Android at the Operating System level. Because a Toast can be displayed if the app is not in the foreground, Android includes its app icon to let the user know which app displayed the Toast.
CommunityToolkit.Maui
is just calling Android's Toast API.