本文整理汇总了Java中android.webkit.WebView.PictureListener类的典型用法代码示例。如果您正苦于以下问题:Java PictureListener类的具体用法?Java PictureListener怎么用?Java PictureListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PictureListener类属于android.webkit.WebView包,在下文中一共展示了PictureListener类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: delaySetup
import android.webkit.WebView.PictureListener; //导入依赖的package包/类
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);
}
示例2: delaySetup
import android.webkit.WebView.PictureListener; //导入依赖的package包/类
private void delaySetup(){
Log.i("WebImage","delaySetup");
wv.setPictureListener(new PictureListener() {
@Override
public void onNewPicture(WebView view, Picture picture) {
Log.i("WebImage","onNewPicture");
wv.setPictureListener(null);
setup();
}
});
//wv.setInitialScale(100);
wv.loadData("<html></html>", "text/html", "utf-8");
wv.setBackgroundColor(color);
}
示例3: delaySetup
import android.webkit.WebView.PictureListener; //导入依赖的package包/类
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);
}
示例4: setWebView
import android.webkit.WebView.PictureListener; //导入依赖的package包/类
/**
* set webview.
*/
private void setWebView() {
LinkedinDialog.oAuthService = LinkedInOAuthServiceFactory.getInstance()
.createLinkedInOAuthService(Config.LINKEDIN_CONSUMER_KEY,
Config.LINKEDIN_CONSUMER_SECRET);
LinkedinDialog.factory = LinkedInApiClientFactory.newInstance(
Config.LINKEDIN_CONSUMER_KEY, Config.LINKEDIN_CONSUMER_SECRET);
LinkedinDialog.liToken = LinkedinDialog.oAuthService
.getOAuthRequestToken(Config.OAUTH_CALLBACK_URL);
WebView mWebView = (WebView) findViewById(R.id.webkitWebView1);
mWebView.getSettings().setJavaScriptEnabled(true);
Log.i("LinkedinSample", LinkedinDialog.liToken.getAuthorizationUrl());
mWebView.loadUrl(LinkedinDialog.liToken.getAuthorizationUrl());
mWebView.setWebViewClient(new HelloWebViewClient());
mWebView.setPictureListener(new PictureListener() {
@Override
public void onNewPicture(WebView view, Picture picture) {
if (progressDialog != null && progressDialog.isShowing()) {
progressDialog.dismiss();
}
}
});
}
示例5: delaySetup
import android.webkit.WebView.PictureListener; //导入依赖的package包/类
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);
}