andorid webview js怎么获得网页逻辑像素和物理像素

Android中Webview自适应屏幕
时间: 15:44:05
& & &WebSetting settings = webView.getSettings();
& & &settings.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
& & &把所有内容放在webview等宽的一列中。(可能会出现页面中链接失效)
& & &settings.setUseWideViewPort(true);
& & &settings.setLoadWithOverviewMode(true);
& & &DisplayMetrics metrics = new DisplayMetrics();
& & &getWindowManager().getDefaultDisplay().getMetrics(metrics);
& & &int mDensity = metrics.densityD
& & &if (mDensity == 120) {
& & & & & & & &settings.setDefaultZoom(ZoomDensity.CLOSE);
&&&&&&&&& }else if (mDensity == 160) {
&&&&&&&&&&&&&& settings.setDefaultZoom(ZoomDensity.MEDIUM);
&&&&&&&&& }else if (mDensity == 240) {
&&&&&&&&&&&&&& settings.setDefaultZoom(ZoomDensity.FAR);
&&&&&&&&& }
$T.total > 0 && $T.page <= $T.pageNum}
{#foreach $T.data as r}
{$T.r.formt_tm}{#if $T.r.nickname}{#else}匿名{#/if}
{$T.r.content}
{#if $T.page > 1 && $T.pageNum > 1)
$T.s_num > 2}
{#for index = $T.s_num to $T.e_num}
$T.pageNum > $T.pageNavSize+ 2 && $T.s_num != $T.pageNum - $T.pageNavSize}
{#if $T.pageNum > 1}
{#if $T.pageNum != $T.page && $T.pageNum > 1}
<a href="javascript:void(0);" page="{$T.page 下一页
您的回应...
也许你感兴趣
(C)2012 本站提供的内容来源于广大网络用户,我们不保证内容的正确性。如果转载了您的内容,希望删除的请联系我们!当前访客身份:游客 [
当前位置:
在android的应用程序中,可以直接调用webview中的javascript代码,而webview中的javascript代码,也可以去调用ANDROID应用程序(也就是JAVA部分的代码).下面举例说明之:
1 JAVASCRIPT脚本调用android程序
要在webview中,调用addJavascriptInterface(OBJ,interfacename) 其中,obj为和javascript通信的应用程序,interfacename为提供给JAVASCRIPT调用的 名称,设置如下:
WebView webView = new WebView(this);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl(getIntent().getCharSequenceExtra(&url&).toString());
//设定JavaScript脚本代码的界面名称是”android”
webView.addJavascriptInterface(this, &android&);
其中WEBVIEW调用的HTML页中,JS如下:
&script type=&text/javascript&&
function ok() {
android.js(document.forms[0].elements[0].value, document.forms[0].elements[1].value);
而这个android.js在哪呢?那是在应用程序中的
//JavaScript脚本代码可以调用的函数js()处理
public void js(String action, String uri) {
这个JS中就是处理JAVASCRIPT发送过来的请求了.
2) 下面的例子,当WEBVIEW网页中输入后,点提交按钮,会跟ANDROID的应用程序进行交互
WebView webView = new WebView(this);
webView.getSettings().setJavaScriptEnabled(true);
webView.setWebChromeClient(new MyWebChromeClient());
webView.loadUrl(getIntent().getCharSequenceExtra(&url&).toString());
//onJsAlert()函数接收到来自HTML网页的alert()警告信息
public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
if (message.length() != 0) {
AlertDialog.Builder builder = new AlertDialog.Builder(JExample02.this);
builder.setTitle(&From JavaScript&).setMessage(message).show();
result.cancel();
而HTML页中的JS事件为:
&input type=&button& value=&alert& onclick=&alert(document.forms[0].elements[0].value)&&
特别提示下,在自定义的MyWebChromeClient())中,除了可以重写onJSAlert外,还可以 重写onJsPrompt,onJsConfirm等,可以参考 /archives//199.html
3) 下面这个例子,先显示第一张图片,点一点后,再显示第2张图片 HTML JS中:
&script language=&javascript&&
function changeImage02() {
document.getElementById(&image&).src=&navy02.jpg&;
function changeImage01() {
document.getElementById(&image&).src=&navy01.jpg&;
&a onClick=&window.demo.onClick()&&
&img id=&image& src=&navy01.jpg&/&&/a&
当点&a onClick=&window.demo.onClick()&& 后,调用ANDROID应用程序中的处理部分,看程序:
webView.addJavascriptInterface(new JSInterface(),&demo&);
public final class JSInterface {
//JavaScript脚本代码可以调用的函数onClick()处理
public void onClick() {
handler.post(new Runnable() {
public void run() {
if (flag == 0) {
webView.loadUrl(&javascript:changeImage02()&);
webView.loadUrl(&javascript:changeImage01()&);
可以看到,ANDROID中,通过webView.loadUrl去调用HTML页面中的JS
共有2个评论
<span class="a_vote_num" id="a_vote_num_
这篇文章做了详细描述,值得一看。
<span class="a_vote_num" id="a_vote_num_
最近刚好用到
更多开发者职位上
有什么技术问题吗?
华宰的其它问题
类似的话题android.webkit.WebView
Start line: &
End line: &
Snippet Preview
Snippet HTML Code
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&package&android.&&&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&import&;&&&&import&;&&import&;&&import&; A View that displays web pages. This class is the basis upon which you
can roll your own web browser or simply display some online content within your Activity.
It uses the WebKit rendering engine to display
web pages and includes methods to navigate forward and backward
through a history, zoom in and out, perform text searches and more.
To enable the built-in zoom, set
WebSettings.
(introduced in API level ).
Note that, in order for your Activity to access the Internet and load web pages
in a WebView, you must add the INTERNET permissions to your
Android Manifest file:
&uses-permission android:name=&android.permission.INTERNET& /&
This must be a child of the &manifest&
For more information, read
Building Web Apps in WebView.
Basic usage
By default, a WebView provides no browser-like widgets, does not
enable JavaScript and web page errors are ignored. If your goal is only
to display some HTML as a part of your UI, t
the user won&t need to interact with the web page beyond reading
it, and the web page won&t need to interact with the user. If you
actually want a full-blown web browser, then you probably want to
invoke the Browser application with a URL Intent rather than show it
with a WebView. For example:
Uri uri = Uri.parse(&&);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
for more information.
To provide a WebView in your own Activity, include a &WebView& in your layout,
or set the entire Activity window as a WebView during :
WebView webview = new WebView(this);
setContentView(webview);
Then load the desired web page:
// Simplest usage: note that an exception will NOT be thrown
// if there is an error loading this page (see below).
webview.loadUrl(&http://slashdot.org/&);
// OR, you can also load from an HTML string:
String summary = &&html&&body&You scored &b&192&/b& points.&/body&&/html&&;
webview.loadData(summary, &text/html&, null);
// ... although note that there are restrictions on what this HTML can do.
// See the JavaDocs for loadData() and
for more info.
A WebView has several customization points where you can add your
own behavior. These are:
Creating and setting a
This class is called when something that might impact a
browser UI happens, for instance, progress updates and
JavaScript alerts are sent here (see Debugging Tasks).
Creating and setting a
It will be called when things happen that impact the
rendering of the content, eg, errors or form submissions. You
can also intercept URL loading here (via ).
Modifying the , such as
enabling JavaScript with
setJavaScriptEnabled().
Injecting Java objects into the WebView using the
method. This
method allows you to inject Java objects into a page&s JavaScript
context, so that they can be accessed by JavaScript in the page.
Here&s a more complicated example, showing error handling,
settings, and progress notification:
// Let&s display the progress in the activity title bar, like the
// browser app does.
getWindow().requestFeature(Window.FEATURE_PROGRESS);
webview.getSettings().setJavaScriptEnabled(true);
final Activity activity =
webview.setWebChromeClient(new WebChromeClient() {
public void onProgressChanged(WebView view, int progress) {
// Activities and WebViews measure progress with different scales.
// The progress meter will automatically disappear when we reach 100%
activity.setProgress(progress * 1000);
webview.setWebViewClient(new WebViewClient() {
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
Toast.makeText(activity, &Oh no! & + description, Toast.LENGTH_SHORT).show();
webview.loadUrl(&http://slashdot.org/&);
Cookie and window management
For obvious security reasons, your application has its own
cache, cookie store etc.—it does not share the Browser
application&s data.
By default, requests by the HTML to open new windows are
ignored. This is true whether they be opened by JavaScript or by
the target attribute on a link. You can customize your
to provide your own behaviour for opening multiple windows,
and render them in whatever manner you want.
The standard behavior for an Activity is to be destroyed and
recreated when the device orientation or any other configuration changes. This will cause
the WebView to reload the current page. If you don&t want that, you
can set your Activity to handle the orientation and keyboardHidden
changes, and then just leave the WebView alone. It&ll automatically
re-orient itself as appropriate. Read Handling Runtime Changes for
more information about how to handle configuration changes during runtime.
Building web pages to support different screen densities
The screen density of a device is based on the screen resolution. A screen with low density
has fewer available pixels per inch, where a screen with high density
has more — sometimes significantly more — pixels per inch. The density of a
screen is important because, other things being equal, a UI element (such as a button) whose
height and width are defined in terms of screen pixels will appear larger on the lower density
screen and smaller on the higher density screen.
For simplicity, Android collapses all actual screen densities into three generalized densities:
high, medium, and low.
By default, WebView scales a web page so that it is drawn at a size that matches the default
appearance on a medium density screen. So, it applies 1.5x scaling on a high density screen
(because its pixels are smaller) and 0.75x scaling on a low density screen (because its pixels
are bigger).
Starting with API level , WebView supports DOM, CSS,
and meta tag features to help you (as a web developer) target screens with different screen
densities.
Here&s a summary of the features you can use to handle different screen densities:
The window.devicePixelRatio DOM property. The value of this property specifies the
default scaling factor used for the current device. For example, if the value of window.devicePixelRatio is &1.0&, then the device is considered a medium density (mdpi) device
and default scaling is not app if the value is &1.5&, then the device is
considered a high density device (hdpi) and the page content is scaled 1.5x; if the
value is &0.75&, then the device is considered a low density device (ldpi) and the content is
scaled 0.75x. However, if you specify the &target-densitydpi& meta property
(discussed below), then you can stop this default scaling behavior.
The -webkit-device-pixel-ratio CSS media query. Use this to specify the screen
densities for which this style sheet is to be used. The corresponding value should be either
&0.75&, &1&, or &1.5&, to indicate that the styles are for devices with low density, medium
density, or high density screens, respectively. For example:
&link rel=&stylesheet& media=&screen and (-webkit-device-pixel-ratio:1.5)& href=&hdpi.css& /&
The hdpi.css stylesheet is only used for devices with a screen pixel ration of 1.5,
which is the high density pixel ratio.
The target-densitydpi property for the viewport meta tag. You can use
this to specify the target density for which the web page is designed, using the following
device-dpi - Use the device&s native dpi as the target dpi. Default scaling never
high-dpi - Use hdpi as the target dpi. Medium and low density screens scale down
as appropriate.
medium-dpi - Use mdpi as the target dpi. High density screens scale up and
low density screens scale down. This is also the default behavior.
low-dpi - Use ldpi as the target dpi. Medium and high density screens scale up
as appropriate.
&value& - Specify a dpi value to use as the target dpi (accepted
values are 70-400).
Here&s an example meta tag to specify the target density:
&meta name=&viewport& content=&target-densitydpi=device-dpi& /&
If you want to modify your web page for different densities, by using the -webkit-device-pixel-ratio CSS media query and/or the window.devicePixelRatio DOM property, then you should set the target-densitydpi meta
property to device-dpi. This stops Android from performing scaling in your web page and
allows you to make the necessary adjustments for each density via CSS and JavaScript.
HTML5 Video support
In order to support inline HTML5 video in your application, you need to have hardware
acceleration turned on, and set a . For full screen support,
implementations of
are required,
is optional.
&&&&&&&&@&public&class&&extends&&&&&&&&&&implements&.,&&&&&&&&&.,&.&{&&&&&&private&static&final&&&=&"webview_proxy";&&&&
Transportation object for returning WebView across thread boundaries.
&&&&&&public&class&&{&&&&&&&&&private&&;&&&&&&&& Sets the WebView to the transportation object.
&&&&&&&&&&public&synchronized&void&(&webview)&{&&&&&&&&&&&&&&=&webview;&&&&&&&&&}&&&&&&&& Gets the WebView object.
&&&&&&&&&&public&synchronized&&()&{&&&&&&&&&&&&&return&;&&&&&&&&&}&&&&&}&&&& URI scheme for telephone number.
&&&&&&public&static&final&&&=&"tel:";&&&& URI scheme for email address.
&&&&&&public&static&final&&&=&"mailto:";&&&& URI scheme for map address.
&&&&&&public&static&final&&&=&"geo:0,0?q=";&&&& Interface to listen for find results.
&&&&&&public&interface&&{&&&&&&&& Notifies the listener about progress made by a find operation.
&&&&&&&&&&public&void&(int&activeMatchOrdinal,&int&numberOfMatches,&&&&&&&&&&&&&boolean&isDoneCounting);&&&&&}&&&& Interface to listen for new pictures as they change.
&&&&&&@&&&&&public&interface&&{&&&&&&&& Used to provide notification that the WebView&s picture has changed.
for details of the picture.
&&&&&&&&&&@&&&&&&&&&public&void&(&view,&&picture);&&&&&}&&&&&&public&static&class&&{&&&&&&&& Default HitTestResult, where the target is unknown.
&&&&&&&&&&public&static&final&int&&=&0;&&&&&&&& &&&&&&&&&&@&&&&&&&&&public&static&final&int&&=&1;&&&&&&&& HitTestResult for hitting a phone number.
&&&&&&&&&&public&static&final&int&&=&2;&&&&&&&& HitTestResult for hitting a map address.
&&&&&&&&&&public&static&final&int&&=&3;&&&&&&&& HitTestResult for hitting an email address.
&&&&&&&&&&public&static&final&int&&=&4;&&&&&&&& HitTestResult for hitting an HTML::img tag.
&&&&&&&&&&public&static&final&int&&=&5;&&&&&&&& &&&&&&&&&&@&&&&&&&&&public&static&final&int&&=&6;&&&&&&&& HitTestResult for hitting a HTML::a tag with src=http.
&&&&&&&&&&public&static&final&int&&=&7;&&&&&&&& HitTestResult for hitting a HTML::a tag with src=http + HTML::img.
&&&&&&&&&&public&static&final&int&&=&8;&&&&&&&& HitTestResult for hitting an edit text area.
&&&&&&&&&&public&static&final&int&&=&9;&&&&&&&&&&private&int&;&&&&&&&&&private&&;&&&&&&&& &&&&&&&&&&public&()&{&&&&&&&&&&&&&&=&;&&&&&&&&&}&&&&&&&& &&&&&&&&&&public&void&(int&type)&{&&&&&&&&&&&&&&=&type;&&&&&&&&&}&&&&&&&& &&&&&&&&&&public&void&(&extra)&{&&&&&&&&&&&&&&=&extra;&&&&&&&&&}&&&&&&&& Gets the type of the hit test result. See the XXX_TYPE constants
defined in this class.
&&&&&&&&&&public&int&()&{&&&&&&&&&&&&&return&;&&&&&&&&&}&&&&&&&& Gets additional type-dependant information about the result. See
for details. May either be null
or contain extra information about this result.
&&&&&&&&&&public&&()&{&&&&&&&&&&&&&return&;&&&&&&&&&}&&&&&}&&&& Constructs a new WebView with a Context object.
&&&&&&public&(&context)&{&&&&&&&&&this(context,&null);&&&&&}&&&& Constructs a new WebView with layout parameters.
&&&&&&public&(&context,&&attrs)&{&&&&&&&&&this(context,&attrs,&.....);&&&&&}&&&& Constructs a new WebView with layout parameters and a default style.
&&&&&&public&(&context,&&attrs,&int&defStyle)&{&&&&&&&&&this(context,&attrs,&defStyle,&false);&&&&&}&&&& Constructs a new WebView with layout parameters and a default style.
&&&&&&@&&&&&public&(&context,&&attrs,&int&defStyle,&&&&&&&&&&&&&boolean&privateBrowsing)&{&&&&&&&&&this(context,&attrs,&defStyle,&null,&privateBrowsing);&&&&&}&&&& Constructs a new WebView with layout parameters, a default style and a set
of custom Javscript interfaces to be added to this WebView at initialization
time. This guarantees that these interfaces will be available when the JS
context is initialized.
&&&&&&@("deprecation")&&&&&&&protected&(&context,&&attrs,&int&defStyle,&&&&&&&&&&&&&&,&>&javaScriptInterfaces,&boolean&privateBrowsing)&{&&&&&&&&&super(context,&attrs,&defStyle);&&&&&&&&&if&(context&==&null)&{&&&&&&&&&&&&&throw&new&("Invalid&context&argument");&&&&&&&&&}&&&&&&&&&();&&&&&&&&&&();&&&&&&&&&.(javaScriptInterfaces,&privateBrowsing);&&&&&}&&&& Specifies whether the horizontal scrollbar has overlay style.
&&&&&&public&void&(boolean&overlay)&{&&&&&&&&&();&&&&&&&&&.(overlay);&&&&&}&&&& Specifies whether the vertical scrollbar has overlay style.
&&&&&&public&void&(boolean&overlay)&{&&&&&&&&&();&&&&&&&&&.(overlay);&&&&&}&&&& Gets whether horizontal scrollbar has overlay style.
&&&&&&public&boolean&()&{&&&&&&&&&();&&&&&&&&&return&.();&&&&&}&&&& Gets whether vertical scrollbar has overlay style.
&&&&&&public&boolean&()&{&&&&&&&&&();&&&&&&&&&return&.();&&&&&}&&&& Gets the visible height (in pixels) of the embedded title bar (if any).
&&&&&&public&int&()&{&&&&&&&&&();&&&&&&&&&return&.();&&&&&}&&&& Gets the SSL certificate for the main top-level page or null if there is
no certificate (the site is not secure).
&&&&&&public&&()&{&&&&&&&&&();&&&&&&&&&return&.();&&&&&}&&&& Sets the SSL certificate for the main top-level page.
&&&&&&@&&&&&public&void&(&certificate)&{&&&&&&&&&();&&&&&&&&&.(certificate);&&&&&}&&&&&&&&&&&&&&&&&&&&& Sets a username and password pair for the specified host. This data is
used by the Webview to autocomplete username and password fields in web
forms. Note that this is unrelated to the credentials used for HTTP
authentication.
&&&&&&public&void&(&host,&&username,&&password)&{&&&&&&&&&();&&&&&&&&&.(host,&username,&password);&&&&&}&&&& Stores HTTP authentication credentials for a given host and realm. This
method is intended to be used with
&&&&&&public&void&(&host,&&realm,&&&&&&&&&&&&&&username,&&password)&{&&&&&&&&&();&&&&&&&&&.(host,&realm,&username,&password);&&&&&}&&&& Retrieves HTTP authentication credentials for a given host and realm.
This method is intended to be used with
&&&&&&public&[]&(&host,&&realm)&{&&&&&&&&&();&&&&&&&&&return&.(host,&realm);&&&&&}&&&& Destroys the internal state of this WebView. This method should be called
after this WebView has been removed from the view system. No other
methods may be called on this WebView after destroy.
&&&&&&public&void&()&{&&&&&&&&&();&&&&&&&&&.();&&&&&}&&&& Enables platform notifications of data state and proxy changes.
Notifications are enabled by default.
&&&&&&@&&&&&public&static&void&()&{&&&&&&&&&();&&&&&&&&&().().(true);&&&&&}&&&& Disables platform notifications of data state and proxy changes.
Notifications are enabled by default.
&&&&&&@&&&&&public&static&void&()&{&&&&&&&&&();&&&&&&&&&().().(false);&&&&&}&&&& Informs WebView of the network state. This is used to set
the JavaScript property window.navigator.isOnline and
generates the online/offline event as specified in HTML5, sec. 5.7.7
&&&&&&public&void&(boolean&networkUp)&{&&&&&&&&&();&&&&&&&&&.(networkUp);&&&&&}&&&& Saves the state of this WebView used in
. Please note that this
method no longer stores the display data for this WebView. The previous
behavior could potentially leak files if
&&&&&&public&&(&outState)&{&&&&&&&&&();&&&&&&&&&return&.(outState);&&&&&}&&&& Saves the current display data to the Bundle given. Used in conjunction
&&&&&&@&&&&&public&boolean&(&b,&final&&dest)&{&&&&&&&&&();&&&&&&&&&return&.(b,&dest);&&&&&}&&&& Restores the display data that was saved in . Used in
conjunction with . Note that this will not work if
this WebView is hardware accelerated.
&&&&&&@&&&&&public&boolean&(&b,&&src)&{&&&&&&&&&();&&&&&&&&&return&.(b,&src);&&&&&}&&&& Restores the state of this WebView from the given Bundle. This method is
intended for use in
and should be called to restore the state of this WebView. If
it is called after this WebView has had a chance to build state (load
pages, create a back/forward list, etc.) there may be undesirable
side-effects. Please note that this method no longer restores the
display data for this WebView.
&&&&&&public&&(&inState)&{&&&&&&&&&();&&&&&&&&&return&.(inState);&&&&&}&&&& Loads the given URL with the specified additional HTTP headers.
&&&&&&public&void&(&url,&&,&>&additionalHttpHeaders)&{&&&&&&&&&();&&&&&&&&&.(url,&additionalHttpHeaders);&&&&&}&&&& Loads the given URL.
&&&&&&public&void&(&url)&{&&&&&&&&&();&&&&&&&&&.(url);&&&&&}&&&& Loads the URL with postData using &POST& method into this WebView. If url
is not a network URL, it will be loaded with {link
&&&&&&public&void&(&url,&byte[]&postData)&{&&&&&&&&&();&&&&&&&&&.(url,&postData);&&&&&}&&&& Loads the given data into this WebView using a &data& scheme URL.
Note that JavaScript&s same origin policy means that script running in a
page loaded using this method will be unable to access content loaded
using any scheme other than &data&, including &http(s)&. To avoid this
restriction, use
with an appropriate base URL.
The encoding parameter specifies whether the data is base64 or URL
encoded. If the data is base64 encoded, the value of the encoding
parameter must be &base64&. For all other values of the parameter,
including null, it is assumed that the data uses ASCII encoding for
octets inside the range of safe URL characters and use the standard %xx
hex encoding of URLs for octets outside that range. For example, &#&,
&%&, &\&, &?& should be replaced by %23, %25, %27, %3f respectively.
The &data& scheme URL formed by this method uses the default US-ASCII
charset. If you need need to set a different charset, you should form a
&data& scheme URL which explicitly specifies a charset parameter in the
mediatype portion of the URL and call
Note that the charset obtained from the mediatype portion of a data URL
always overrides that specified in the HTML or XML document itself.
&&&&&&public&void&(&data,&&mimeType,&&encoding)&{&&&&&&&&&();&&&&&&&&&.(data,&mimeType,&encoding);&&&&&}&&&& Loads the given data into this WebView, using baseUrl as the base URL for
the content. The base URL is used both to resolve relative URLs and when
applying JavaScript&s same origin policy. The historyUrl is used for the
history entry.
Note that content specified in this way can access local device files
(via &file& scheme URLs) only if baseUrl specifies a scheme other than
&http&, &https&, &ftp&, &ftps&, &about& or &javascript&.
If the base URL uses the data scheme, this method is equivalent to
calling loadData() and the
historyUrl is ignored.
&&&&&&public&void&(&baseUrl,&&data,&&&&&&&&&&&&&&mimeType,&&encoding,&&historyUrl)&{&&&&&&&&&();&&&&&&&&&.(baseUrl,&data,&mimeType,&encoding,&historyUrl);&&&&&}&&&& Saves the current view as a web archive.
&&&&&&public&void&(&filename)&{&&&&&&&&&();&&&&&&&&&.(filename);&&&&&}&&&& Saves the current view as a web archive.
&&&&&&public&void&(&basename,&boolean&autoname,&&>&callback)&{&&&&&&&&&();&&&&&&&&&.(basename,&autoname,&callback);&&&&&}&&&& Stops the current load.
&&&&&&public&void&()&{&&&&&&&&&();&&&&&&&&&.();&&&&&}&&&& Reloads the current URL.
&&&&&&public&void&()&{&&&&&&&&&();&&&&&&&&&.();&&&&&}&&&& Gets whether this WebView has a back history item.
&&&&&&public&boolean&()&{&&&&&&&&&();&&&&&&&&&return&.();&&&&&}&&&& Goes back in the history of this WebView.
&&&&&&public&void&()&{&&&&&&&&&();&&&&&&&&&.();&&&&&}&&&& Gets whether this WebView has a forward history item.
&&&&&&public&boolean&()&{&&&&&&&&&();&&&&&&&&&return&.();&&&&&}&&&& Goes forward in the history of this WebView.
&&&&&&public&void&()&{&&&&&&&&&();&&&&&&&&&.();&&&&&}&&&& Gets whether the page can go back or forward the given
number of steps.
&&&&&&public&boolean&(int&steps)&{&&&&&&&&&();&&&&&&&&&return&.(steps);&&&&&}&&&& Goes to the history item that is the number of steps away from
the current item. Steps is negative if backward and positive
if forward.
&&&&&&public&void&(int&steps)&{&&&&&&&&&();&&&&&&&&&.(steps);&&&&&}&&&& Gets whether private browsing is enabled in this WebView.
&&&&&&public&boolean&()&{&&&&&&&&&();&&&&&&&&&return&.();&&&&&}&&&& Scrolls the contents of this WebView up by half the view size.
&&&&&&public&boolean&(boolean&top)&{&&&&&&&&&();&&&&&&&&&return&.(top);&&&&&}&&&& Scrolls the contents of this WebView down by half the page size.
&&&&&&public&boolean&(boolean&bottom)&{&&&&&&&&&();&&&&&&&&&return&.(bottom);&&&&&}&&&& Clears this WebView so that onDraw() will draw nothing but white background,
and onMeasure() will return 0 if MeasureSpec is not MeasureSpec.EXACTLY.
&&&&public&void&()&{&&&&&&&&();&&&&&&&&.();&&&&}&&&& Gets a new picture that captures the current contents of this WebView.
The picture is of the entire document being displayed, and is not
limited to the area currently displayed by this WebView. Also, the
picture is a static copy and is unaffected by later changes to the
content being displayed.
Note that due to internal changes, for API levels between
inclusive, the
picture does not include fixed position elements or scrollable divs.
&&&&public&&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Gets the current scale of this WebView.
&&&&@&&&&@.(category&=&"webview")&&&&public&float&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Sets the initial scale for this WebView. 0 means default. If
is true, it zooms out all the
way. Otherwise it starts with 100%. If initial scale is greater than 0,
WebView starts with this value as initial scale.
Please note that unlike the scale properties in the viewport meta tag,
this method doesn&t take the screen density into account.
&&&&public&void&(int&scaleInPercent)&{&&&&&&&&();&&&&&&&&.(scaleInPercent);&&&&}&&&& Invokes the graphical zoom picker widget for this WebView. This will
result in the zoom widget appearing on the screen to control the zoom
level of this WebView.
&&&&public&void&()&{&&&&&&&&();&&&&&&&&.();&&&&}&&&& Gets a HitTestResult based on the current cursor node. If a HTML::a
tag is found and the anchor has a non-JavaScript URL, the HitTestResult
type is set to SRC_ANCHOR_TYPE and the URL is set in the &extra& field.
If the anchor does not have a URL or if it is a JavaScript URL, the type
will be UNKNOWN_TYPE and the URL has to be retrieved through
asynchronously. If a HTML::img tag is
found, the HitTestResult type is set to IMAGE_TYPE and the URL is set in
the &extra& field. A type of
SRC_IMAGE_ANCHOR_TYPE indicates an anchor with a URL that has an image as
a child node. If a phone number is found, the HitTestResult type is set
to PHONE_TYPE and the phone number is set in the &extra& field of
HitTestResult. If a map address is found, the HitTestResult type is set
to GEO_TYPE and the address is set in the &extra& field of HitTestResult.
If an email address is found, the HitTestResult type is set to EMAIL_TYPE
and the email is set in the &extra& field of HitTestResult. Otherwise,
HitTestResult type is set to UNKNOWN_TYPE.
&&&&public&&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Requests the anchor or image element URL at the last tapped point.
If hrefMsg is null, this method returns immediately and does not
dispatch hrefMsg to its target. If the tapped point hits an image,
an anchor, or an image in an anchor, the message associates
strings in named keys in its data. The value paired with the key
may be an empty string.
&&&&public&void&(&hrefMsg)&{&&&&&&&&();&&&&&&&&.(hrefMsg);&&&&}&&&& Requests the URL of the image last touched by the user. msg will be sent
to its target with a String representing the URL as its object.
&&&&public&void&(&msg)&{&&&&&&&&();&&&&&&&&.(msg);&&&&}&&&& Gets the URL for the current page. This is not always the same as the URL
passed to WebViewClient.onPageStarted because although the load for
that URL has begun, the current page may not have changed.
&&&&@.(category&=&"webview")&&&&public&&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Gets the original URL for the current page. This is not always the same
as the URL passed to WebViewClient.onPageStarted because although the
load for that URL has begun, the current page may not have changed.
Also, there may have been redirects resulting in a different URL to that
originally requested.
&&&&@.(category&=&"webview")&&&&public&&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Gets the title for the current page. This is the title of the current page
until WebViewClient.onReceivedTitle is called.
&&&&@.(category&=&"webview")&&&&public&&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Gets the favicon for the current page. This is the favicon of the current
page until WebViewClient.onReceivedIcon is called.
&&&&public&&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Gets the touch icon URL for the apple-touch-icon &link& element, or
a URL on this site&s server pointing to the standard location of a
touch icon.
&&&&public&&()&{&&&&&&&&return&.();&&&&}&&&& Gets the progress for the current page.
&&&&public&int&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Gets the height of the HTML content.
&&&&@.(category&=&"webview")&&&&public&int&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Gets the width of the HTML content.
&&&&@.(category&=&"webview")&&&&public&int&()&{&&&&&&&&return&.();&&&&}&&&& Pauses all layout, parsing, and JavaScript timers for all WebViews. This
is a global requests, not restricted to just this WebView. This can be
useful if the application has been paused.
&&&&public&void&()&{&&&&&&&&();&&&&&&&&.();&&&&}&&&& Resumes all layout, parsing, and JavaScript timers for all WebViews.
This will resume dispatching all timers.
&&&&public&void&()&{&&&&&&&&();&&&&&&&&.();&&&&}&&&& Pauses any extra processing associated with this WebView and its
associated DOM, plugins, JavaScript etc. For example, if this WebView is
taken offscreen, this could be called to reduce unnecessary CPU or
network traffic. When this WebView is again &active&, call onResume().
Note that this differs from pauseTimers(), which affects all WebViews.
&&&&public&void&()&{&&&&&&&&();&&&&&&&&.();&&&&}&&&& Resumes a WebView after a previous call to onPause().
&&&&public&void&()&{&&&&&&&&();&&&&&&&&.();&&&&}&&&& Gets whether this WebView is paused, meaning onPause() was called.
Calling onResume() sets the paused state back to false.
&&&&public&boolean&()&{&&&&&&&&return&.();&&&&}&&&& Informs this WebView that memory is low so that it can free any available
&&&&public&void&()&{&&&&&&&&();&&&&&&&&.();&&&&}&&&& Clears the resource cache. Note that the cache is per-application, so
this will clear the cache for all WebViews used.
&&&&public&void&(boolean&includeDiskFiles)&{&&&&&&&&();&&&&&&&&.(includeDiskFiles);&&&&}&&&& Removes the autocomplete popup from the currently focused form field, if
present. Note this only affects the display of the autocomplete popup,
it does not remove any saved form data from this WebView&s store. To do
that, use .
&&&&public&void&()&{&&&&&&&&();&&&&&&&&.();&&&&}&&&& Tells this WebView to clear its internal back/forward list.
&&&&public&void&()&{&&&&&&&&();&&&&&&&&.();&&&&}&&&& Clears the SSL preferences table stored in response to proceeding with
SSL certificate errors.
&&&&public&void&()&{&&&&&&&&();&&&&&&&&.();&&&&}&&&& Gets the WebBackForwardList for this WebView. This contains the
back/forward list for use in querying each item in the history stack.
This is a copy of the private WebBackForwardList so it contains only a
snapshot of the current state. Multiple calls to this method may return
different objects. The object returned from this method will not be
updated to reflect any new state.
&&&&public&&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Registers the listener to be notified as find-on-page operations
progress. This will replace the current listener.
&&&&public&void&(&listener)&{&&&&&&&&();&&&&&&&&.(listener);&&&&}&&&& Highlights and scrolls to the next match found by
, wrapping around page boundaries as necessary.
Notifies any registered . If
has not been called yet, or if
has been called since the
last find operation, this function does nothing.
&&&&public&void&(boolean&forward)&{&&&&&&&&();&&&&&&&&.(forward);&&&&}&&&& Finds all instances of find on the page and highlights them.
Notifies any registered .
&&&&@&&&&public&int&(&find)&{&&&&&&&&();&&&&&&&&StrictMode.("findAll&blocks&UI:&prefer&findAllAsync");&&&&&&&&return&.(find);&&&&}&&&& Finds all instances of find on the page and highlights them,
asynchronously. Notifies any registered .
Successive calls to this will cancel any pending searches.
&&&&public&void&(&find)&{&&&&&&&&();&&&&&&&&.(find);&&&&}&&&& Starts an ActionMode for finding text in this WebView.
Only works if this
WebView is attached to the view system.
&&&&public&boolean&(&text,&boolean&showIme)&{&&&&&&&&();&&&&&&&&return&.(text,&showIme);&&&&}&&&& Gets the first substring consisting of the address of a physical
location. Currently, only addresses in the United States are detected,
and consist of:
a house number
a street name
a street type (Road, Circle, etc), either spelled out or
abbreviated
a city name
a state or territory, either spelled out or two-letter abbr
an optional 5 digit or 9 digit zip code
All names must be correctly capitalized, and the zip code, if present,
must be valid for the state. The street type must be a standard USPS
spelling or abbreviation. The state or territory must also be spelled
or abbreviated using USPS standards. The house number may not exceed
five digits.
&&&&public&static&&(&addr)&{&&&&&&&&return&().().(addr);&&&&}&&&& Clears the highlighting surrounding text matches created by
&&&&public&void&()&{&&&&&&&&();&&&&&&&&.();&&&&}&&&& Queries the document to see if it contains any image references. The
message object will be dispatched with arg1 being set to 1 if images
were found and 0 if the document does not reference any images.
&&&&public&void&(&response)&{&&&&&&&&();&&&&&&&&.(response);&&&&}&&&& Sets the WebViewClient that will receive various notifications and
requests. This will replace the current handler.
&&&&public&void&(&client)&{&&&&&&&&();&&&&&&&&.(client);&&&&}&&&& Registers the interface to be used when content can not be handled by
the rendering engine, and should be downloaded instead. This will replace
the current handler.
&&&&public&void&(&listener)&{&&&&&&&&();&&&&&&&&.(listener);&&&&}&&&& Sets the chrome handler. This is an implementation of WebChromeClient for
use in handling JavaScript dialogs, favicons, titles, and the progress.
This will replace the current handler.
&&&&public&void&(&client)&{&&&&&&&&();&&&&&&&&.(client);&&&&}&&&& Sets the Picture listener. This is an interface used to receive
notifications of a new Picture.
&&&&@&&&&public&void&(&listener)&{&&&&&&&&();&&&&&&&&.(listener);&&&&}&&&& Injects the supplied Java object into this WebView. The object is
injected into the JavaScript context of the main frame, using the
supplied name. This allows the Java object&s methods to be
accessed from JavaScript. For applications targeted to API
and above, only public methods that are annotated with
can be accessed from JavaScript.
For applications targeted to API level
all public methods (including the inherited ones) can be accessed, see the
important security note below for implications.
Note that injected objects will not
appear in JavaScript until the page is next (re)loaded. For example:
class JsObject {
@JavascriptInterface
public String toString() { return &injectedObject&; }
webView.addJavascriptInterface(new JsObject(), &injectedObject&);
webView.loadData(&&title&&/title&&, &text/html&, null);
webView.loadUrl(&javascript:alert(injectedObject.toString())&);
IMPORTANT:
This method can be used to allow JavaScript to control the host
application. This is a powerful feature, but also presents a security
risk for applications targeted to API level
or below, because
JavaScript could use reflection to access an
injected object&s public fields. Use of this method in a WebView
containing untrusted content could allow an attacker to manipulate the
host application in unintended ways, executing Java code with the
permissions of the host application. Use extreme care when using this
method in a WebView which could contain untrusted content.
JavaScript interacts with Java object on a private, background
thread of this WebView. Care is therefore required to maintain thread
The Java object&s fields are not accessible.
&&&&public&void&(&object,&&name)&{&&&&&&&&();&&&&&&&&.(object,&name);&&&&}&&&& Removes a previously injected Java object from this WebView. Note that
the removal will not be reflected in JavaScript until the page is next
(re)loaded. See .
&&&&public&void&(&name)&{&&&&&&&&();&&&&&&&&.(name);&&&&}&&&& Gets the WebSettings object used to control the settings for this
&&&&public&&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Gets the list of currently loaded plugins.
&&&&@&&&&public&static&synchronized&&()&{&&&&&&&&();&&&&&&&&return&new&();&&&&}&&&& &&&&@&&&&public&void&(boolean&reloadOpenPages)&{&&&&&&&&();&&&&}&&&& Puts this WebView into text selection mode. Do not rely on this
it will be deprecated in the future.
&&&&@&&&&public&void&()&{&&&&&&&&();&&&&}&&&& &&&&@&&&&&&&&@&&&&public&void&(&parent,&&child)&{}&&&& &&&&@&&&&&&&&@&&&&public&void&(&p,&&child)&{}&&&& &&&&@&&&&&&&&@&&&&public&void&(&oldFocus,&&newFocus)&{&&&&}&&&& &&&&@&&&&public&void&(boolean&setMap)&{&&&&&&&&();&&&&&&&&.(setMap);&&&&}&&&&public&void&(int&vx,&int&vy)&{&&&&&&&&();&&&&&&&&.(vx,&vy);&&&&}&&&& Gets the zoom controls for this WebView, as a separate View. The caller
is responsible for inserting this View into the layout hierarchy.
introduced
built-in zoom mechanisms for the WebView, as opposed to these separate
zoom controls. The built-in mechanisms are preferred and can be enabled
&&&&@&&&&public&&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Gets whether this WebView can be zoomed in.
&&&&@&&&&public&boolean&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Gets whether this WebView can be zoomed out.
&&&&@&&&&public&boolean&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Performs zoom in in this WebView.
&&&&public&boolean&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& Performs zoom out in this WebView.
&&&&public&boolean&()&{&&&&&&&&();&&&&&&&&return&.();&&&&}&&&& &&&&@&&&&public&void&()&{&&&&&&&&();&&&&}&&&& See
&&&&@&&&&public&void&(&out,&int&level)&{&&&&&&&&.(out,&level);&&&&}&&&& See
&&&&@&&&&public&&(&className,&int&hashCode)&{&&&&&&&&return&.(className,&hashCode);&&&&}&&&&&&&&&&&&&&&& Gets the WebViewProvider. Used by providers to obtain the underlying
implementation, e.g. when the appliction responds to
WebViewClient.onCreateWindow() request.
&&&&public&&()&{&&&&&&&&return&;&&&&}&&&& Callback interface, allows the provider implementation to access non-public methods
and fields, and make super-class calls in this WebView instance.
&&&&public&class&&{&&&&&&&&&&&&&&&&public&int&()&{&&&&&&&&&&&&return&.super.();&&&&&&&&}&&&&&&&&public&void&(int&scrollX,&int&scrollY)&{&&&&&&&&&&&&.super.(scrollX,&scrollY);&&&&&&&&}&&&&&&&&public&void&()&{&&&&&&&&&&&&.super.();&&&&&&&&}&&&&&&&&public&boolean&(&event)&{&&&&&&&&&&&&return&.super.(event);&&&&&&&&}&&&&&&&&public&boolean&(int&action,&&arguments)&{&&&&&&&&&&&&return&.super.(action,&arguments);&&&&&&&&}&&&&&&&&public&boolean&()&{&&&&&&&&&&&&return&.super.();&&&&&&&&}&&&&&&&&public&boolean&(int&left,&int&top,&int&right,&int&bottom)&{&&&&&&&&&&&&return&.super.(left,&top,&right,&bottom);&&&&&&&&}&&&&&&&&public&boolean&(&event)&{&&&&&&&&&&&&return&.super.(event);&&&&&&&&}&&&&&&&&public&boolean&(&event)&{&&&&&&&&&&&&return&.super.(event);&&&&&&&&}&&&&&&&&public&boolean&(int&direction,&&previouslyFocusedRect)&{&&&&&&&&&&&&return&.super.(direction,&previouslyFocusedRect);&&&&&&&&}&&&&&&&&public&void&(.&params)&{&&&&&&&&&&&&.super.(params);&&&&&&&&}&&&&&&&&&&&&&&&&public&void&(int&deltaX,&int&deltaY,&&&&&&&&&&&&&&&&int&scrollX,&int&scrollY,&&&&&&&&&&&&&&&&int&scrollRangeX,&int&scrollRangeY,&&&&&&&&&&&&&&&&int&maxOverScrollX,&int&maxOverScrollY,&&&&&&&&&&&&&&&&boolean&isTouchEvent)&{&&&&&&&&&&&&.this.(deltaX,&deltaY,&scrollX,&scrollY,&scrollRangeX,&scrollRangeY,&&&&&&&&&&&&&&&&&&&&maxOverScrollX,&maxOverScrollY,&isTouchEvent);&&&&&&&&}&&&&&&&&public&void&(int&duration)&{&&&&&&&&&&&&.this.(duration);&&&&&&&&}&&&&&&&&public&void&(int&duration,&boolean&invalidate)&{&&&&&&&&&&&&.this.(duration,&invalidate);&&&&&&&&}&&&&&&&&public&float&()&{&&&&&&&&&&&&return&.this.();&&&&&&&&}&&&&&&&&public&float&()&{&&&&&&&&&&&&return&.this.();&&&&&&&&}&&&&&&&&public&void&(int&measuredWidth,&int&measuredHeight)&{&&&&&&&&&&&&.this.(measuredWidth,&measuredHeight);&&&&&&&&}&&&&&&&&public&void&(int&l,&int&t,&int&oldl,&int&oldt)&{&&&&&&&&&&&&.this.(l,&t,&oldl,&oldt);&&&&&&&&}&&&&&&&&public&int&()&{&&&&&&&&&&&&return&.this.();&&&&&&&&}&&&&&&&&&&&&&&&&Raw setter for the scroll X value, without invoking onScrollChanged handlers etc.&&&&&&&&public&void&(int&scrollX)&{&&&&&&&&&&&&.this.&=&scrollX;&&&&&&&&}&&&&&&&&Raw setter for the scroll Y value, without invoking onScrollChanged handlers etc.&&&&&&&&public&void&(int&scrollY)&{&&&&&&&&&&&&.this.&=&scrollY;&&&&&&&&}&&&&}&&&&&&&&&&&&&&&&private&&;&&&&private&void&()&{&&&&&&&&();&&&&&&&&if&(&==&null)&{&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&=&().(this,&new&());&&&&&&&&}&&&&}&&&&private&static&synchronized&&()&{&&&&&&&&&&&&&&&&&&&&&&&&();&&&&&&&&return&WebViewFactory.();&&&&}&&&&private&static&void&()&{&&&&&&&&if&(Looper.()&!=&Looper.())&{&&&&&&&&&&&&&throwable&=&new&(&&&&&&&&&&&&&&&&&&&&"Warning:&A&WebView&method&was&called&on&thread&'"&+&&&&&&&&&&&&&&&&&&&&Thread.().()&+&"'.&"&+&&&&&&&&&&&&&&&&&&&&"All&WebView&methods&must&be&called&on&the&UI&thread.&"&+&&&&&&&&&&&&&&&&&&&&"Future&versions&of&WebView&may&not&support&use&on&other&threads.");&&&&&&&&&&&&Log.(,&Log.(throwable));&&&&&&&&&&&&StrictMode.(throwable);&&&&&&&&}&&&&}&&&&&&&&&&&&&&&&&&&&&&&&@&&&&protected&void&()&{&&&&&&&&super.();&&&&&&&&.().();&&&&}&&&&@&&&&protected&void&()&{&&&&&&&&.().();&&&&&&&&super.();&&&&}&&&&@&&&&public&void&(.&params)&{&&&&&&&&.().(params);&&&&}&&&&@&&&&public&void&(int&mode)&{&&&&&&&&super.(mode);&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&();&&&&&&&&.().(mode);&&&&}&&&&@&&&&public&void&(int&style)&{&&&&&&&&.().(style);&&&&&&&&super.(style);&&&&}&&&&@&&&&protected&int&()&{&&&&&&&&return&.().();&&&&}&&&&@&&&&protected&int&()&{&&&&&&&&return&.().();&&&&}&&&&@&&&&protected&int&()&{&&&&&&&&return&.().();&&&&}&&&&@&&&&protected&int&()&{&&&&&&&&return&.().();&&&&}&&&&@&&&&protected&int&()&{&&&&&&&&return&.().();&&&&}&&&&@&&&&public&void&()&{&&&&&&&&.().();&&&&}&&&&@&&&&public&boolean&(&event)&{&&&&&&&&return&.().(event);&&&&}&&&&@&&&&public&boolean&(&event)&{&&&&&&&&return&.().(event);&&&&}&&&&@&&&&public&boolean&(&event)&{&&&&&&&&return&.().(event);&&&&}&&&&@&&&&public&boolean&(&event)&{&&&&&&&&return&.().(event);&&&&}&&&&@&&&&public&boolean&(int&keyCode,&&event)&{&&&&&&&&return&.().(keyCode,&event);&&&&}&&&&@&&&&public&boolean&(int&keyCode,&&event)&{&&&&&&&&return&.().(keyCode,&event);&&&&}&&&&@&&&&public&boolean&(int&keyCode,&int&repeatCount,&&event)&{&&&&&&&&return&.().(keyCode,&repeatCount,&event);&&&&}&&&&&&&&@&&&&@&&&&public&boolean&()&{&&&&&&&&return&.().();&&&&}&&&&@&&&&public&void&(&info)&{&&&&&&&&super.(info);&&&&&&&&info.(.class.());&&&&&&&&.().(info);&&&&}&&&&@&&&&public&void&(&event)&{&&&&&&&&super.(event);&&&&&&&&event.(.class.());&&&&&&&&.().(event);&&&&}&&&&@&&&&public&boolean&(int&action,&&arguments)&{&&&&&&&&return&.().(action,&arguments);&&&&}&&&&&&&&@&&&&protected&void&(&canvas,&&scrollBar,&&&&&&&&&&&&int&l,&int&t,&int&r,&int&b)&{&&&&&&&&.().(canvas,&scrollBar,&l,&t,&r,&b);&&&&}&&&&@&&&&protected&void&(int&scrollX,&int&scrollY,&boolean&clampedX,&boolean&clampedY)&{&&&&&&&&.().(scrollX,&scrollY,&clampedX,&clampedY);&&&&}&&&&@&&&&protected&void&(int&visibility)&{&&&&&&&&super.(visibility);&&&&&&&&.().(visibility);&&&&}&&&&@&&&&protected&void&(&canvas)&{&&&&&&&&.().(canvas);&&&&}&&&&@&&&&public&boolean&()&{&&&&&&&&return&.().();&&&&}&&&&@&&&&protected&void&(&newConfig)&{&&&&&&&&.().(newConfig);&&&&}&&&&@&&&&public&&(&outAttrs)&{&&&&&&&&return&.().(outAttrs);&&&&}&&&&@&&&&protected&void&(&changedView,&int&visibility)&{&&&&&&&&super.(changedView,&visibility);&&&&&&&&.().(changedView,&visibility);&&&&}&&&&@&&&&public&void&(boolean&hasWindowFocus)&{&&&&&&&&.().(hasWindowFocus);&&&&&&&&super.(hasWindowFocus);&&&&}&&&&@&&&&protected&void&(boolean&focused,&int&direction,&&previouslyFocusedRect)&{&&&&&&&&.().(focused,&direction,&previouslyFocusedRect);&&&&&&&&super.(focused,&direction,&previouslyFocusedRect);&&&&}&&&&&&&&@&&&&protected&boolean&(int&left,&int&top,&int&right,&int&bottom)&{&&&&&&&&return&.().(left,&top,&right,&bottom);&&&&}&&&&@&&&&protected&void&(int&w,&int&h,&int&ow,&int&oh)&{&&&&&&&&super.(w,&h,&ow,&oh);&&&&&&&&.().(w,&h,&ow,&oh);&&&&}&&&&@&&&&protected&void&(int&l,&int&t,&int&oldl,&int&oldt)&{&&&&&&&&super.(l,&t,&oldl,&oldt);&&&&&&&&.().(l,&t,&oldl,&oldt);&&&&}&&&&@&&&&public&boolean&(&event)&{&&&&&&&&return&.().(event);&&&&}&&&&@&&&&public&boolean&(int&direction,&&previouslyFocusedRect)&{&&&&&&&&return&.().(direction,&previouslyFocusedRect);&&&&}&&&&@&&&&@&&&&protected&void&(int&widthMeasureSpec,&int&heightMeasureSpec)&{&&&&&&&&super.(widthMeasureSpec,&heightMeasureSpec);&&&&&&&&.().(widthMeasureSpec,&heightMeasureSpec);&&&&}&&&&@&&&&public&boolean&(&child,&&rect,&boolean&immediate)&{&&&&&&&&return&.().(child,&rect,&immediate);&&&&}&&&&@&&&&public&void&(int&color)&{&&&&&&&&.().(color);&&&&}&&&&@&&&&public&void&(int&layerType,&&paint)&{&&&&&&&&super.(layerType,&paint);&&&&&&&&.().(layerType,&paint);&&&&}}
&android.webkit
<div class="gae-status" id="gae-status-$java$ext@com.google.android$android@4.2_r1@android$webkit@WebView@(android.content.Context)">
<div class="gae-status" id="gae-status-$java$ext@com.google.android$android@4.2_r1@android$webkit@WebView@(android.content.Context,android.util.AttributeSet)">
<div class="gae-status" id="gae-status-$java$ext@com.google.android$android@4.2_r1@android$webkit@WebView@(android.content.Context,android.util.AttributeSet,int)">
<div class="gae-status" id="gae-status-$java$ext@com.google.android$android@4.2_r1@android$webkit@WebView@(android.content.Context,android.util.AttributeSet,int,boolean)">
<div class="gae-status" id="gae-status-$java$ext@com.google.android$android@4.2_r1@android$webkit@WebView@(android.content.Context,android.util.AttributeSet,int,java.util.Map,boolean)">
<div class="gae-status" id="gae-status-$java$ext@com.google.android$android@4.2_r1@android$webkit@WebView.HitTestResult@()">
..........
................
................
................
................
New to GrepCode? Check out our

我要回帖

更多关于 ios 逻辑像素 的文章

 

随机推荐