Search in sources :

Example 1 with PictureListener

use of android.webkit.WebView.PictureListener in project androidquery by androidquery.

the class WebImage method delaySetup.

private void delaySetup() {
    wv.setPictureListener(new PictureListener() {

        @Override
        public void onNewPicture(WebView view, Picture picture) {
            wv.setPictureListener(null);
            setup();
        }
    });
    //wv.setInitialScale(100);
    wv.loadData("<html></html>", "text/html", "utf-8");
    wv.setBackgroundColor(color);
}
Also used : PictureListener(android.webkit.WebView.PictureListener) Picture(android.graphics.Picture) WebView(android.webkit.WebView)

Example 2 with PictureListener

use of android.webkit.WebView.PictureListener in project SmartAndroidSource by jaychou2012.

the class WebImage method delaySetup.

private void delaySetup() {
    wv.setPictureListener(new PictureListener() {

        @Override
        public void onNewPicture(WebView view, Picture picture) {
            wv.setPictureListener(null);
            setup();
        }
    });
    //wv.setInitialScale(100);
    wv.loadData("<html></html>", "text/html", "utf-8");
    wv.setBackgroundColor(color);
}
Also used : PictureListener(android.webkit.WebView.PictureListener) Picture(android.graphics.Picture) WebView(android.webkit.WebView)

Aggregations

Picture (android.graphics.Picture)2 WebView (android.webkit.WebView)2 PictureListener (android.webkit.WebView.PictureListener)2