[android-developers] Re: Best way to apply complex actions to view during pressed state?

2013-02-25 Thread bob
You need to process ACTION_CANCEL. If a user presses the button and slides his finger off the button before lifting it up, that's a cancel. On Monday, February 25, 2013 4:51:18 PM UTC-6, user123 wrote: > > I want to apply certain transforms to a view and it's children during > pressed stat

[android-developers] Re: Best way to apply complex actions to view during pressed state?

2013-02-26 Thread skink
On 25 Lut, 23:51, user123 wrote: > I want to apply certain transforms to a view and it's children during > pressed state, e.g. a color filter. > > As far my current knowledge, I can't do this using StateListDrawable or XML > configuration. > > The concrete situation: A GridView where the cells h

[android-developers] Re: Best way to apply complex actions to view during pressed state?

2013-02-26 Thread user123
This worked perfectly! I don't need ACTION_MOVE anymore. I knew there was a simple solution for this. Thanks. Am Dienstag, 26. Februar 2013 00:04:28 UTC+1 schrieb bob: > > You need to process ACTION_CANCEL. If a user presses the button and > slides his finger off the button before lifting it u

[android-developers] Re: Best way to apply complex actions to view during pressed state?

2013-02-26 Thread user123
Thanks. This sounds interesting but I'll go for the other solution, because it's very easy to implement and it worked. But I might use this one for other things. Am Dienstag, 26. Februar 2013 09:31:01 UTC+1 schrieb skink: > > > > On 25 Lut, 23:51, user123 wrote: > > I want to apply certain tra

[android-developers] Re: Best way to apply complex actions to view during pressed state?

2013-02-26 Thread skink
user123 wrote: > Thanks. This sounds interesting but I'll go for the other solution, because > it's very easy to implement and it worked. But I might use this one for > other things. > your solution even if it works is a workaround which can (but not always) represent the actual state, you use s