Adding Snackbar Library

Hi all, I have went through Android Developer site and ended up here- :face_with_monocle:

In this I can see that there are more other methods for button. So I decided to create an extension with more functions. Now, my problem is that how can I import the library to my extension-With what name I have to import. Your answers will be highly appreciated.

Thank you. :smiling_face_with_three_hearts:


It is for button?

or Generalized

Yes if din't work try


And what about Floating Action Button

For button I posted
For general

1 Like

What about This.... :sweat_smile:

Really I needed the library for Snackbar
I thought that it would be better to learn from simplest to hardest :joy:

Import last line of the chart

So for Snackbar, we need to use-
1 Like

Import that fully

Yes use it

1 Like

Thank you let me check.. :smiling_face_with_three_hearts:

Can I PM you?

@HIFI_APPS Can you please say what are the imports for a snackbar. I am confused.

U can pm,


For snackbar

1 Like

As far as I know app Inventor doesn't have any library that adds the snackbar class, you would also have to add the android material design library to your extension ( which contains the Snackbar classes ). Or you would get an error that the package doesn't exist.

How can I add?

I have added this class-

You would have to get the material library jar file, because it doesn't exist in the current sources.
You will find its Aar file here, you can try to extract the classes.jar file, and use it with your extension ( for the app Inventor Sources see here, for the extension template see this topic, if you are using Appybuilder, so it's not possible ):