animation - Animate paint stroke width on Android -


i'm trying animate drawing of ellipses in custom view. aim simulate ellipses being drawn point point stroke width getting thinner.

i'm trying using 2 valueanimator's, 1 acting on sweep angle , other 1 on stroke width.

animating drawing of ellipses works fine, can't work out how achieve effect of stroke width getting thinner. main difficulty think every time invalidate view, rect within ellipses drawn gets redrawn , therefore latest stroke width visible ellipses gets redrawn.

any suggestion welcomed, thank you.

it looks have invalidate view every time when stroke width changed since canvas content has redrawn using paint different thickness.

so should add upadatelistener (that 1 used in xamarin c#, not sure java syntax) , each time change stroke-width , call invalidate() function.

this solution far away optimized one, not find one.

any suggestion me well.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -