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

It doesn't work for MenuItem #6

Open
Brblol opened this issue Aug 21, 2013 · 3 comments
Open

It doesn't work for MenuItem #6

Brblol opened this issue Aug 21, 2013 · 3 comments

Comments

@Brblol
Copy link

Brblol commented Aug 21, 2013

MenuItem.setIcon() comes out blank when I set an iconic drawable

@atermenji
Copy link
Owner

you should call setIndetermindateWidth()/Height() methods first, because IconicDrawable uses these values when it is put inside MenuItem.
I will try to make API more clearer soon.

@Brblol
Copy link
Author

Brblol commented Aug 21, 2013

setIntrinsicHeight and setIntrinsicWidth did the job. Thanks very much

@enginebai
Copy link

@atermenji Hi, may I suggest that you can add default value to setIntrinsicHeight() and setIntrinsicWidth() method to fix this issue?? Thanks.

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

3 participants