Example usage for android.webkit WebView getTag

List of usage examples for android.webkit WebView getTag

Introduction

In this page you can find the example usage for android.webkit WebView getTag.

Prototype

@ViewDebug.ExportedProperty
public Object getTag() 

Source Link

Document

Returns this view's tag.

Usage

From source file:com.ubiLive.GameCloud.Browser.WebBrowser.java

/**
 * release the webview url/*from   www.  ja v  a 2 s . co  m*/
 */
public void reload(String reloadUrl) {
    if (!sBCurrentActivityStatus) {
        return;
    }
    DebugLog.d(TAG, "0829 reload() enter");
    int size = mChildViewList.size();
    if (size > 1) {
        for (int i = 0; i < (size - 1); i++) {
            WebView child = (WebView) mChildViewList.get(i).findViewById(GameActivityRes.ID_CHILD_WEBVIEW);
            if (child.getTag() != null) {
                child.loadUrl(child.getTag().toString());
                child.setTag(null);
            } else {
                child.reload();
            }
        }
    }
    //      String reloadUrl = Utils.checkUrl(GameInfo.DEFAULT_URL);
    mWebView.loadUrl(reloadUrl);
}