SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <a href="/products/product01.html`><img src="/media/images/image01.jpg"></a>
  2.      
  3. public class FullscreenActivity extends AppCompatActivity
  4. {
  5.     private WebView blizzView;
  6.     private Button backButton;
  7.     private String website;
  8.  
  9.     private View.OnTouchListener handleTouch = new View.OnTouchListener()
  10.     {
  11.         @Override
  12.         public boolean onTouch(View v, MotionEvent event)
  13.         {
  14.             Log.i("debug_log", "touch");
  15.  
  16.             int x = (int) event.getX();
  17.             int y = (int) event.getY();
  18.  
  19.             switch (event.getAction()) {
  20.                 case MotionEvent.ACTION_DOWN:
  21.                     Log.i("debug_log", "touched down");
  22.                     break;
  23.                 case MotionEvent.ACTION_MOVE:
  24.                     Log.i("debug_log", "moving: (" + x + ", " + y + ")");
  25.                     break;
  26.                 case MotionEvent.ACTION_UP:
  27.                     Log.i("debug_log", "touched up");
  28.                     break;
  29.             }
  30.  
  31.             return true;
  32.         }
  33.     };
  34. ...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top