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

How to add/remove items after creating the drawer? #40

Closed
y2kshane opened this issue Feb 26, 2015 · 5 comments
Closed

How to add/remove items after creating the drawer? #40

y2kshane opened this issue Feb 26, 2015 · 5 comments
Assignees

Comments

@y2kshane
Copy link

Is it possible to add/remove items from the drawer after the initiation ?

@mikepenz
Copy link
Owner

It's really easy:

Drawer.Result result = new Drawer().withActivity(this).build();
//now you can use the result and do some stuff with it
result.addItem(..);
result.removeItem(..);

@mikepenz mikepenz self-assigned this Feb 26, 2015
@y2kshane
Copy link
Author

wow that's easy ...... i actually wasted like 2 days with this other material drawer lib which won't allow to add/remove items dynamically ...that's why i asked without even trying the lib :)
You should create a wiki.....that will clarify the capabilities of this lib
Anyway thanks for the lib and for the reply

@mikepenz
Copy link
Owner

It is ;) and it should be :D

Drawer.Result result = new Drawer().withActivity(this).build();

is just the most simple configuration for the drawer. see the README.md for advanced usage :)

@dvraman
Copy link

dvraman commented Jun 15, 2018

Does it have a method which removes all items with a particular tag ? I couldn't find any

@msubham193
Copy link

how to store all item in database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants