Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there anyway that .sheet(---) method could take some Array list or so ?? Its hard to make a constant list as a menu xml file. #50

Closed
pingothedoer opened this issue Apr 15, 2015 · 9 comments

Comments

@pingothedoer
Copy link

No description provided.

@soarcn
Copy link
Owner

soarcn commented Apr 16, 2015

Yes, I'm working on this. A menu inflator will be introduced for this.

@pingothedoer
Copy link
Author

Ok...m definitely waiting for that.

@soarcn
Copy link
Owner

soarcn commented Apr 22, 2015

A huge update could be expected this weekend after my network setup getting done.

@pingothedoer
Copy link
Author

That's really very cool

@soarcn
Copy link
Owner

soarcn commented Apr 25, 2015

I've updated master branch to 1.1.0 with the feature you need, but since this is an update with significant change, defects are expected, please help to test it before I push it to maven repository. Thanks.

@pingothedoer
Copy link
Author

Thank you so much , i will definitely test it with several cases.

@pingothedoer
Copy link
Author

sheet(int id, int iconRes, int textRes)
sheet(int id, @nonnull Drawable icon, @nonnull CharSequence text)
sheet(int id, int textRes)
sheet(int id, @nonnull CharSequence text)

All these methods are taking single item. how m i supposed to insert multiple items?

@pingothedoer
Copy link
Author

Like i said in my question, what if i need to use some sort of collective data like arraylist or something instead of an xml menu file.

@soarcn
Copy link
Owner

soarcn commented Apr 26, 2015

@pingothedoer you can get a Menu item from bottomsheet instance with getMenu(), it has standard android menu interface, you can do anything you want.

But, if what you needed is just insert multiple items, sheet() can do it quite well, just like the ShareAction in example application. I think this interface is simple enough with chain style programming, even simpler than arraylist.

@soarcn soarcn closed this as completed May 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants