![]() ![]() toast.SetGravity(GravityFlags.FillHorizontal | GravityFlags.Bottom, 0, 0) Tv.SetForegroundGravity(GravityFlags.CenterVertical | GravityFlags.CenterHorizontal) ![]() TextView tv = (TextView)layout.GetChildAt(0) LinearLayout layout = (LinearLayout)toast.View If (Android.OS. >= Android.OS.BuildVersionCodes.R) ![]() Toast toast = Toast.MakeText(, message, ToastLength.Long) Toast.MakeText(, message, ToastLength.Long).Show() Since Android 11, custom toasts/ toast modifications are deprecated, that is why your app in Android 30 is not able to display custom toasts, Toast component doesn't work into Android 11 Apps can create a standard text toast with the makeText(,, int) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |