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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - WPF+EF - The operation cannot be completed because the DbContext has been disposed -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -