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.

  1. do in js/css. mentioned, there several js plugin support parsing 9patch. , css3 has new feature named border-image, achieve same result.

  2. 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 , use ninepatchdrawable parse it. convert bitmap , return back.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -