2 つの質問があります。
このコードは でピンチを使用することがわかりました
webImageView
が、 で変更webImageView
するとWebView
. コードでエラーが発生します。webview
?? でピンチを使用する方法// create the WebImageView object from xml WebImageView img = (WebImageView) findViewById(R.id.main_pic); // fetches the image in a background thread img.setImageFromURL("http://www.mysite.com/mypicture.jpg"); // enable pinch-zoom abilities on the image new PinchImageView(img);
コードにピンチを追加すると、すべてのモバイル android でサポートされているか、それを機能させるための特定の画面が必要になります。