Search in sources :

Example 6 with HitTestResult

use of android.webkit.WebView.HitTestResult in project robolectric by robolectric.

the class ShadowWebView method createHitTestResult.

/**
 * Creates an instance of {@link HitTestResult}.
 */
public static HitTestResult createHitTestResult(int type, String extra) {
    HitTestResult hitTestResult = new HitTestResult();
    hitTestResult.setType(type);
    hitTestResult.setExtra(extra);
    return hitTestResult;
}
Also used : HitTestResult(android.webkit.WebView.HitTestResult)

Aggregations

HitTestResult (android.webkit.WebView.HitTestResult)6 Intent (android.content.Intent)2 View (android.view.View)2 WebView (android.webkit.WebView)2 TextView (android.widget.TextView)2 SuppressLint (android.annotation.SuppressLint)1 TargetApi (android.annotation.TargetApi)1 ActivityNotFoundException (android.content.ActivityNotFoundException)1 MotionEvent (android.view.MotionEvent)1 OnLongClickListener (android.view.View.OnLongClickListener)1 WebViewClient (android.webkit.WebViewClient)1 FrameLayout (android.widget.FrameLayout)1 ImageView (android.widget.ImageView)1 Test (org.junit.Test)1