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
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:
>
>
> http://code.google.com/android/reference/
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 "frie
3 matches
Mail list logo