IconicDroid icon indicating copy to clipboard operation
IconicDroid copied to clipboard

It doesn't work for MenuItem

Open Brblol opened this issue 12 years ago • 3 comments
trafficstars

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

Brblol avatar Aug 21 '13 19:08 Brblol

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.

atermenji avatar Aug 21 '13 19:08 atermenji

setIntrinsicHeight and setIntrinsicWidth did the job. Thanks very much

Brblol avatar Aug 21 '13 20:08 Brblol

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

enginebai avatar Jul 13 '14 16:07 enginebai