android - How to make TranslateAnimation smooth? -
there's scanner line in captureactivity. want add translateanimation , let line move top of "hot area" bottom, it's not smooth @ all. don't know why?
here's code snippet
framelayout.layoutparams linearparams = new framelayout.layoutparams(framelayout.layoutparams.wrap_content,framelayout.layoutparams.wrap_content); linearparams.width = width; mimageview.setlayoutparams(linearparams); mimageview.invalidate(); mimageview.setvisibility(view.visible); mtranslateanimation.setduration(3000); mtranslateanimation.setrepeatcount(animation.infinite); mimageview.startanimation(mtranslateanimation);
any ideas?
Comments
Post a Comment