svg - What is the best way in Android to have a scalable, complicated, colorizable shape? -
i want have, say, outline of dog in app maintains aspect ratio grows depending on available screen space. want able color fill on fly depending on user input. best way this?
it's svg want android doesn't support that. stuck making custom view or doing manually in canvas? there way?
i come wpf , in world can specify path in xaml exported blend automatically scales fit. there similar can generate outline somewhere else , import android drawable or custom view? basically, i'd avoid having draw complicated shape arc arc.
the webview widget supports svg - @ least android 3.0 onwards. alternatively, use 1 of svg rendering libraries more lightweight solution. various derivatives , forks of svg-android support swapping colours @ runtime.
Comments
Post a Comment