OriginalToast : An Extension to work with Toast [FREE]

1.Introduction

An Extension to show toast using complete functions, and Compatible with Android 11
and all Android Versions.

See also android 11 toast issue here :
https://developer.android.com/preview/features/toasts

Latest Version: 1
Released: 2020-11-04T23:00:00Z
Last Updated: 2020-11-08T23:00:00Z

2.Blocks

blocks Screenshot (64)

3.Documentation

  • Show Toast
    to show toast that has been set (Margin, Duration, Gravity.etc)
    component_method
  • Gravity
    to set toast gravity using Constant Value.
    blocks (2)
See Constant Value Here

Untitled

For more information about Constant Value, you can see here :
https://developer.android.com/reference/android/view/Gravity#constants_1

  • Margin X
    to set toast margin with the x-axis
    blocks (4)
  • Margin Y
    to set toast margin with the y-axis
    blocks (5)

4.Screenshots

Screenshot1
Screenshot5
Screenshot2
Screenshot3

5.Download

com.SalmanDev.OriginalToast.aix (7.7 KB) ~ New Update

  • Fixed Minor Bugs in Toast Duration

6.Credits

Thank you to My Best Teacher @mohamed_tamer for teaching me so many things. :heart_eyes: :kissing_heart:
Thank you to My Best Friend @vknow360 for helping me. :kissing_heart:
And Also Thanks to @WaterMelonIceGaming And @KUMARASWAMY_B.G for helping me too. :kissing_heart:

And Thanks a lot to MIT :heart:

6 Likes

There's actually no problem at all for the Android 11, but anyways good work!

2 Likes

Great work :+1:

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.

3 Likes

Might be useful to provide a list of gravity values for positioning....

2 Likes

They are listed here:
https://developer.android.com/reference/android/view/Gravity#constants_1

1 Like

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.

2 Likes

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.

1 Like

Thank you very much @mohamed_tamer, @WaterMelonIceGaming, @TIMAI2, @vknow360

1 Like

Yes, actually my extension, it works on all versions of Android

1 Like

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 :innocent:


I think I will do some research for that constant

Nice extensions, Some new features (margin and gravity) :wink:

1 Like

Thank you @newbiedeveloper :kissing_heart:

Okay @TIMAI2 I have Added List For Constant Value.

Good man :+1:

1 Like

Thanks a lot @TIMAI2 for the great idea :kissing_heart:

Awesome work friend! Keep it up

1 Like

Thank you very much for your support @Techno_Vedang :innocent: :kissing_heart:

1 Like

New Update

OriginalToast : An Extension to work with Toast [FREE]

  • Fixed Minor Bugs in Toast Duration
2 Likes