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. Sony Ericsson Xperia Arc to support 10-point multi-touch

One of the biggest complaints about the Sony Ericsson Xperia X10 was its lack 
of multi-touch support, which is pretty much a standard feature in decent 
smartphones nowadays. Well, Sony has learned from their mistakes, and has given 
the upcoming Xperia Arc not 1, not 2, but over 10 points of multi-touch. This 
is all possible thanks to the Arc Cypress TrueTouch All-Point digitizer, 
which is capable of up to 32 X/Y sensor inputs.

Obviously 32 is a lot greater than 10, but unless you have three people all 
clamoring around your phone with their grubby fingers it probably easier to 
just call it 10-point multi-touch. Regardless of what you call it, this is 
great news for the Arc and a good sign that Sony is learning from their 
mistakes with the previous members of the Xperia line

Intrude with Liberated


2. build error

Hello friends,

i am trying to build android filesys with this git

but i get this error i found this error
here but i
could not fix it. i have installed sun java 5 jdk . Did anyone else
face the same problem ?



3. Using onItemSelected with conditionals

4. When NOT to update AppWidget from a Service


6. How can we use..?

7. Boot animation restarts with android2.2 port on DM355