9-patch images in Android WebView -
do 9-patch images work inside android webview? haven't found definitively answers 1 way or another. know there's project uses javascript mimic on web (https://github.com/chrislondon/9-patch-image-for-websites), figure use workable alternative wondered if else had ideas.
i think feasible , there several ways have try.
do in js/css. mentioned, there several js plugin support parsing 9patch. , css3 has new feature named border-image, achieve same result.
do in android. if used in android, can use
webview.addjavascriptinterface()
, enable js invoke android code. when javascript want image, send image uri , desired size of image android. android try load image , useninepatchdrawable
parse it. convert bitmap , return back.
Comments
Post a Comment