Frame animation problems android -
i stuck showing frame animation in android. problem have animate 36 images. smallest image 69 kb in size , biggest(last frame) 526kb. total of 11mb. know insane need it. see images below. app made iphone , have port android. requirements:
smooth animation no frame loss consistent iphonethe solutions tried are:
animationdrawable providing in xml files. problems: start time 6 -12 seconds. images lose frames jaggy experience. change imageview bitmap within handler. problems: frame loss , out of memory create custom imageview class. define method showanimation() , within update bitmap , invalidate() view unitl lastly frame. problems: not fitting requirement. far gave best result not half required.i noob in opengl , gamedevelopment. unable find alternative problem. please help.
smallest image:
last image:
i can visualize effect aiming at.i guess doing require pushing in different images onto same imageview, incremental frame rate.|
the accuracy depend on number of images have. greater number of images finer precision.
also need implement incremental frame rate. gives smoother feel.
doing should possible using simple loop alter image resource of imageview controller. there must lag between 2 iterations, lag frame rate.
i think can give satisfactory results.
going opengl, however, not need these images. require 1 image of card animated , duplicated create final image. complex piece of task(i think) if catching dead lines, must go non-opengl solution 1st one, have suggested.
android animation android-animation
No comments:
Post a Comment