WebView clearMatches - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for WebView clearMatches method.

This code example shows how to use the following methods:clearDisappearingChildren, clearFocus, clearCache, clearFormData, clearHistory
This code example shows how to use the following methods:clearMatches
    } 
     
    public void dismiss() { 
        super.dismiss(); 
        mBrowserActivity.closeFind();
        mWebView.clearMatches();
    } 
     
    @Override 
    public boolean dispatchKeyEvent(KeyEvent event) {
        int code = event.getKeyCode();
        boolean up = event.getAction() == KeyEvent.ACTION_UP;
        switch (code) {
            case KeyEvent.KEYCODE_DPAD_CENTER:
            case KeyEvent.KEYCODE_ENTER:
                if (!mEditText.hasFocus()) {
                    break; 
                } 
                if (up) {
                    findNext(); 
4
CodeRank
This code example shows how to use the following methods:clearMatches
    } 
     
    public void dismiss() { 
        super.dismiss(); 
        //mBrowserActivity.closeFind(); 
        mWebView.clearMatches();
    } 
 
    @Override 
    public boolean dispatchKeyEvent(KeyEvent event) {
        if (event.getKeyCode() == KeyEvent.KEYCODE_ENTER
                && event.getAction() == KeyEvent.ACTION_UP
                && mEditText.hasFocus()) {
            findNext(); 
            return true; 
        } 
        return super.dispatchKeyEvent(event);
    } 
 
    private void findNext() { 
4
CodeRank
clearMatches Method Overview
Clears the highlighting surrounding text matches created by findAllAsync(String).
See Code Examples for other Android WebView Methods: