> 3. button.setLayoutParams(new AbsoluteLayout.LayoutParams(width, height, x, > y));
then requestLayout(). Also, apply the new layout params when the animation ends. > > Do I have to call button.postInvalidate() also? > > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] Im Auftrag von Romain Guy > Gesendet: Dienstag, 17. Februar 2009 08:01 > An: [email protected] > Betreff: [android-developers] Re: button animation problem > > > You should also call requestLayout(). > > On Mon, Feb 16, 2009 at 10:56 PM, Christian Wiesbauer > <[email protected]> wrote: >> >> I changed it this way: >> >> button.setLayoutParams(new AbsoluteLayout.LayoutParams(width, height, x, >> y)); >> >> -----Ursprüngliche Nachricht----- >> Von: [email protected] >> [mailto:[email protected]] Im Auftrag von Romain Guy >> Gesendet: Montag, 16. Februar 2009 20:42 >> An: [email protected] >> Betreff: [android-developers] Re: button animation problem >> >> >> How do you change the layout params? >> >> On Mon, Feb 16, 2009 at 7:37 AM, Christian Wiesbauer >> <[email protected]> wrote: >>> Hi, >>> >>> >>> >>> I rotate a button 90 degrees anti-clockwise with a RotateAnimation. I > also >>> change the position of this button with AbsoluteLayout.LayoutParams. My >>> problem is that after these steps the button cannot be clicked or > focused. >>> If I click on the old position (before the animation) the onClick event > is >>> called. How can I set the "click area" to the new position? Does >>> TouchDelegate do the trick? >>> >>> >>> >>> Thanks, >>> >>> >>> >>> Christian Wiesbauer >>> >>> >>> >>> > >>> >> >> >> >> -- >> Romain Guy >> Android framework engineer >> [email protected] >> >> Note: please don't send private questions to me, as I don't have time >> to provide private support. All such questions should be posted on >> public forums, where I and others can see and answer them >> >> >> >> > >> > > > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them > > > > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

