本文整理汇总了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);
}
开发者ID:steven2947,项目名称:NeXT_pyp,代码行数:18,代码来源:WebImage.java
示例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);
}
开发者ID:rdmwfs,项目名称:dobroreader-mod,代码行数:21,代码来源:WebImage.java
示例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);
}
开发者ID:libit,项目名称:lr_dialer,代码行数:16,代码来源:WebImage.java
示例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();
}
}
});
}
开发者ID:ohmp,项目名称:UniversalSocialLoginAndroid,代码行数:32,代码来源:LinkedinDialog.java
示例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);
}
开发者ID:bblue000,项目名称:ExoPlayerDemo,代码行数:20,代码来源:WebImage.java
注:本文中的android.webkit.WebView.PictureListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论