我是phoneGap的新手,我试图在android中使用SVG支持来实现webview,以使用protovis(基于javaScript的)库来呈现一些可视化方法http://mbostock.github.com/protovis/ 。使用PhoneGap创建一个支持SVG的WebView(Android)
我有以下代码加载html文件。
public class HelloPhoneGapActivity extends DroidGap {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
}
}
现在我正在努力使这个http://mbostock.github.com/protovis/ex/antibiotics-burtin-full.html,但在Android的WebView中我只能获得背景色。
是否有任何特殊的选项来建立一个Web视图的可变性渲染?
在此先感谢!
你的应用程序使用什么Android版本?正如我可以在这个答案中看到:http://stackoverflow.com/a/7473938/571353它只能在Android 3.0以上版本 – SERPRO 2012-02-22 11:10:01