Re: [android-developers] Custom drawing states possible?

2014-02-06 Thread Alik Elzin
Try adding an onclicklistener and invoke refreshDrawableState from performClick. On Tuesday, November 6, 2012 1:29:06 PM UTC+2, Mustafa Ali wrote: Tried using it on 4.0.3, the onCreateDrawableState method is not getting called. On Tuesday, April 1, 2008 4:52:19 AM UTC+5:30, Megha wrote:

Re: [android-developers] Custom drawing states possible?

2012-11-06 Thread Mustafa Ali
Tried using it on 4.0.3, the onCreateDrawableState method is not getting called. On Tuesday, April 1, 2008 4:52:19 AM UTC+5:30, Megha wrote: Hi, You can use the mergeDrawableStates() method of the View class to provide your custom states:

[android-developers] Custom drawing states possible?

2008-03-31 Thread Ted Hopp
With some searching I've found several examples and explanations of customizing the look of a component based on the drawing states. But I haven't found anything about defining custom drawing states. For instance, suppose I have a component that maintains states that I might call baked and fried