There's actually no problem at all for the Android 11, but anyways good work!
Great work
Because Ai2 isn't yet targeting API 30.So custom toasts still works, due to the fact that the custom toasts aren't removed from the Android SDK, they are just deprecated in API version 30, which means that they can be no longer used when Ai2 targets API 30.
Might be useful to provide a list of gravity values for positioning....
They are listed here:
https://developer.android.com/reference/android/view/Gravity#constants_1
I saw that, but for most users this would not make much sense.
e.g. what constant would place the toast vertical centre, 2/3 from the top ?
A simple list of these would help, rather than having to figure out the somewhat obscure descriptions from Android, or trial and error, one by one.
Good job.
I didn't help you.
Also sometimes, a combination of more than one constant is needed so providing blocks for it will be useful.
Yes, actually my extension, it works on all versions of Android
OK I'll try to add the list like you said
Maybe you have forgotten, you helped me a lot,
but I will never forget your help
I think I will do some research for that constant
Nice extensions, Some new features (margin and gravity)
Good man
Awesome work friend! Keep it up
Final Update
- Removed Set Gravity Block (deprecated in API level 30)
- Removed Set MarginX Block (deprecated in API level 30)
- Removed Set MarginY Block (deprecated in API level 30)
- Fixed Minor Bugs in ShowToast Block
Hi Everyone Now This Extension Is Open Source.
Note: This extension won't be updated anymore, that's why I've provided the source code.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.