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 > don't know to bound a button with an animation) , following image > animation with a little delay - what functions should i use? What > should the code look like? >
View button = (View)findViewById( R.id.my_button ); button.startAnimation( AnimationUtils.loadAnimation( R.anim.anim_for_my_button ) ); you can safely stick to View instead of i.e. ImageButton in case of applying animation. Regards, Marcin Orlowski *Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy... *Date In Tray* <http://bit.ly/dateintraypro> - current date at glance... WebnetMobile on *Facebook <http://webnetmobile.com/fb/>*, *Google+*<http://bit.ly/webnetmobile-gp>and *Twitter <http://webnetmobile.com/twitter/>* -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en