[android-developers] Re: How to do animation when click on a bitmap

2010-03-04 Thread Nithin
Hi CMF, check this.. http://smartandroidians.blogspot.com/2010/02/animation-through-bitmap.html On Feb 25, 10:25 pm, social hub shubem...@gmail.com wrote: In your case you are extending view however if you use built in views or even your view which holds just the image. then u can

[android-developers] Re: How to do animation when click on a bitmap

2010-02-25 Thread CMF
Hi, do you have an explicit example? I don't know what are the relationships between the BitmapAnimation View , the main class and the Drawable class.. On Feb 25, 1:09 pm, Nithin nithin.war...@gmail.com wrote: Create a class BitmapDrawable which extends Drawable and pass the bitmap to the

Re: [android-developers] Re: How to do animation when click on a bitmap

2010-02-25 Thread social hub
In your case you are extending view however if you use built in views or even your view which holds just the image. then u can setanimation and startanimation TranslateAnimation animation = new TranslateAnimation( Animation.RELATIVE_TO_PARENT, 0.0f,

[android-developers] Re: How to do animation when click on a bitmap

2010-02-24 Thread Nithin
Create a class BitmapDrawable which extends Drawable and pass the bitmap to the contructor. Then in draw() , draw the bitmap. Create the object of the BitmapDrawable class and add the object to the AnimationDrawable using addFrame()and set the duration in milliseconds(how much time you need to