[android-developers] Button animation

2012-03-13 Thread Tytanit
I need help - i am new to android, and i couldn't solve my problem at my own, so i'm posting here - I've got an image animation, a few buttons, and an animation files ( xml) written. What i want to do, is to make a button animation ( i don't know to bound a button with an animation) , following

Re: [android-developers] Button animation

2012-03-13 Thread Marcin Orlowski
On 12 March 2012 16:47, Tytanit tyta...@gmail.com wrote: I need help - i am new to android, and i couldn't solve my problem at my own, so i'm posting here - I've got an image animation, a few buttons, and an animation files ( xml) written. What i want to do, is to make a button animation ( i

[android-developers] Button Animation

2011-10-14 Thread F4L|{0
hi I have a problem with an animation of a button. I would move and fade a button from a origin position to another position. well i created a translate animation and fade animation, i start the animation with the follow code: AnimationSet exchangeAnimation = new AnimationSet(true);

Re: [android-developers] Button Animation

2011-10-14 Thread TreKing
On Fri, Oct 14, 2011 at 2:49 AM, F4L|{0 simone.dolcio...@gmail.com wrote: somebody can help me on how to correctly position the hit area of the button? AFAIK, animations only make it look like an object is moving / scaling / whatever. The actual position / size / whatever of the View in

[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:

[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

[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