Closed wizwally closed 8 years ago
Sorry for the delay, do you have an example code to show what the problem is using LayerDrawable, so that I can test your code in the right conditions?
Closed due to inactivity. Feel free to reopen and provide additional info.
Using the IconDrawable in a LayerDrawable could cause an issue in icon rendering. I experienced that bounds has been changed before the draw method is called causing an override of the size set earlier; maybe is better to set text height from the size specified or if equals to -1 to the current bounds height.
I suggest this draw method that sizes correctly the icon if bounds has been changed and center the icon. Maybe it would be useful to set a vertical/horizantal offset/padding of the icon.