[android-developers] button animation problem

2009-02-16 Thread Christian Wiesbauer
Just to understand you correctly! >Also, apply the new layout params when the animation ends. Do you mean register an AnimationListener and call setLayoutParams(...) in onAnimationEnd(...)? -Ursprüngliche Nachricht- Von: android-developers@googlegroups.com [mailto:android-develop...@goo

[android-developers] button animation problem

2009-02-16 Thread Christian Wiesbauer
I tried requestLayout() but it still doesn't work. Maybe I use the wrong order? 1. button.setAnimation(...); 2. button.requestLayout(); 3. button.setLayoutParams(new AbsoluteLayout.LayoutParams(width, height, x, y)); Do I have to call button.postInvalidate() also? -Ursprüngliche Nachricht-

[android-developers] button animation problem

2009-02-16 Thread Christian Wiesbauer
I changed it this way: button.setLayoutParams(new AbsoluteLayout.LayoutParams(width, height, x, y)); -Ursprüngliche Nachricht- Von: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] Im Auftrag von Romain Guy Gesendet: Montag, 16. Februar 2009 20:42 An: andr