there are only five animations for android? how can i extend this feature

by LemonDev » Wed, 02 Sep 2009 10:16:27 GMT


Sponsored Links
 as we known we can use predefined animations in android
developing, they are : alpha animation, scale animation, rotate
animation, translate animation and skew animation(extend animation
using Matrix's setSkew function).  though ,we can implement other
effect using the Matrix, but it can only realize some shape
transformations(i think the real color pixels don't changed).
    If i want to make some effects like "blur" , it can't work,because
animation only give the transformation matrix . we can't not
manipulate the color pixels.
    Please do me a favor, how can i realize effect like "blur" ?

--~--~---------~--~----~------------~-------~--~----~



there are only five animations for android? how can i extend this feature

by LemonDev » Wed, 02 Sep 2009 11:10:05 GMT


 thanks. you mean i can't use the Animation object anymore, and i
should do the "blur" in my code .
but the problem is i don't use the "blur" separately: i want  to mix
the blur , scale and alpha , so i need to code the "scale"
and "alpha" myself ?
   the android use Skia to draw bitmap, so weather i can modify the
framework to invoke a blurfilter in skia? it seems a big workload, any
advice is appreciated !




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


there are only five animations for android? how can i extend this feature

by Timothy F » Thu, 03 Sep 2009 02:54:23 GMT


 The animations don't do anything to the bitmap, per se.  For every
"tick" of the animation, the method getTransformation is called on
each Animation so that it can return a Transformation that describes
an affine transformation and an alpha value.  If you want to do more
than those two things you can use the getTransformation method as a
hook to do other things during the animation, such as change the
background colour of a View.  If you want something more complex than
that, such as blurring the image (which is not an affine
transformation), you'll need to start looking at Canvas and Paint and
overriding the onDraw method.





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Market update of an app installed from another source?




Market app will not know about app installed via other means, but as
long as certifikate & package
are the same it will install it over existing application

-- 

2. howe to make a sub activity. ore a new windows with ui.



where i can develop som kind off settings menu.

Look up PreferenceActivity.



I have no idea what you just said here.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 

3. Weekend Info Event COMPFEST 201

4. Display routes dynamically on Map Application

5. How can I catch screen orientation change in onPause()?

6. ERROR: Unable to get nature of project ... and others

7. Report from Sency