Re: [android-developers] Re: Adding custom enum states to an ImageButton

2012-07-06 Thread Dianne Hackborn
Then write your own custom Drawable subclass that does what you want. On Thu, Jul 5, 2012 at 10:04 PM, lianyu li wrote: > But sometimes it's really not enough to express states only with booleans, > actually I have the same issue with Nick, that is "adding custom states in > a list of enums". No

Re: [android-developers] Re: Adding custom enum states to an ImageButton

2012-07-05 Thread lianyu li
But sometimes it's really not enough to express states only with booleans, actually I have the same issue with Nick, that is "adding custom states in a list of enums". Not sure whether Android has plan to add such feature. On Fri, Jul 6, 2012 at 10:18 AM, Dianne Hackborn wrote: > Yes this must be

Re: [android-developers] Re: Adding custom enum states to an ImageButton

2012-07-05 Thread Dianne Hackborn
Yes this must be booleans. There is no way to express anything else in StateListDrawable. On Thu, Jul 5, 2012 at 6:21 AM, li lianyu wrote: > It's seems that currently Android doesn't support non-boolean state. You > can verify it by adding another item with non-a state in selector pair. I > ass