fullpagedeveloper / ToastOrEgg

A toastoregg library for android.
https://ko-fi.com/fullpage_developer
GNU General Public License v3.0
10 stars 4 forks source link

Request: support Android 11 (R - API 31) #3

Open AndroidDeveloperLB opened 3 years ago

AndroidDeveloperLB commented 3 years ago

Sadly on Android R, you can't set a custom View for a Toast (when targeting API 31) :

https://developer.android.com/reference/android/widget/Toast#setView(android.view.View) https://developer.android.com/reference/android/widget/Toast#getView()

Please offer something that mimics the standard Toast's look&feel, so that at least we could have it shown within the app, as a normal View. Maybe something similar to what we have when we long press the action items on the toolbar:

dfu6CwFaPM.zip

Custom Toasts are useful anyway usually only when the user is inside the app...

fullpagedeveloper commented 3 years ago

I'm sorry I was slow to respond to your issue, I will fix it soon, once again I thank you.

AndroidDeveloperLB commented 3 years ago

I suggest to have something that mimics it, with the option to set which View we want to show, and also with the option to be positioned in an exact position.