{"id":546,"date":"2011-09-20T16:01:00","date_gmt":"2011-09-20T16:01:00","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/2012\/10\/android-tutorial-gestures-in-your-app.html"},"modified":"2012-10-21T20:13:40","modified_gmt":"2012-10-21T20:13:40","slug":"android-tutorial-gestures-in-your-app","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html","title":{"rendered":"Android Tutorial: Gestures in your app"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left\">Gestures in mobile apps are pretty common place these days. Almost anyone with smart phone experience knows that pinching will usually zoom in on an image. Now, using Gestures in Android is a snap.<\/p>\n<p><span style=\"font-weight: bold\">OnTouch<\/span><\/p>\n<p>All gestures are really handled with one event on an Activity. OnTouch is called anytime a View is touched on the screen. It provides all the information you\u2019ll need to create some pretty interesting gestures. Android provides a few simple classes that allow you to quickly add some gestures to your application without really getting into the details of gestures. When OnTouch is fired, you receive a MotionEvent and a reference to the View that was touched.<\/p>\n<p><span style=\"font-weight: bold\">Explanation of a Motion Event<\/span><\/p>\n<p>The Motion Event is what the Android OS returns every time the screen is touched in the OnTouch callback. The <a href=\"http:\/\/developer.android.com\/reference\/android\/view\/MotionEvent.html\">MotionEvent<\/a> object contains information about how many fingers are touching the screen and the velocity of a finger that is moving. It has all the details needed to handle any kind of Gesture. Android also goes a step further.<\/p>\n<p>Android provides a few nice classes for some basic gesture detection, such as single finger drag and drop. They provide the developer with an easy way to implement a few gestures without really getting your hands dirty by using the <a href=\"http:\/\/developer.android.com\/reference\/android\/view\/GestureDetector.SimpleOnGestureListener.html\">SimpleOnGestureListener<\/a>.<\/p>\n<p><span style=\"font-weight: bold\">How to use the OnGestureListener<\/span><\/p>\n<p>Using the OnGestureListener is very easy. In your activity, hook up your OnTouch Listener to the root view of your activity (if you\u2019re looking to have gestures on the full screen).<\/p>\n<pre class=\"brush:java\">rootLayout.setOnTouchListener(new OnTouchListener() {\r\n\t@Override\r\n\tpublic boolean onTouch(View v, MotionEvent event) {\r\n\t\tyourGestureListener.onTouchEvent(event);\r\n\t\treturn false;\r\n\t}\r\n});\r\n<\/pre>\n<p>Now all of the touch events on the rootlayout will be handled by your SimpleOnGestureListener. All that is left is to implement what your Gesture Listener does on certain touch events. By simply overriding the methods you need, you can implement gesture functionality without determining what type of gesture the user has done. For example, you can override the OnScroll method of the SimpleOnGestureListener to implement your own function for scrolling on your <a href=\"http:\/\/developer.android.com\/reference\/android\/view\/View.html\">View<\/a>.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p><span style=\"font-weight: bold\">Why the Simple GestureDetector isn\u2019t so great<\/span><\/p>\n<p>The Simple GestureDetector is great for any gesture that only requires some basic gestures. However, for any gesture looking for two (or more) touches, you\u2019re out of luck. If you really want to get into the thick of Gestures, you really need to look into the Motion Event object a bit further.<\/p>\n<p><span style=\"font-weight: bold\">Creating More Complicated Gestures<\/span><\/p>\n<p>Lets go in a different direction from the above example. Lets say, instead of just calling the Gesture Listener in our OnTouch callback, lets look at the Motion Event object a bit more.<\/p>\n<p>Each Motion Event we receive has its own action, such as <a href=\"http:\/\/developer.android.com\/reference\/android\/view\/MotionEvent.html#ACTION_DOWN\">DOWN<\/a>, where a finger has been pressed on the view, or <a href=\"http:\/\/developer.android.com\/reference\/android\/view\/MotionEvent.html#ACTION_MOVE\">MOVE<\/a>, where a finger has moved from one position on the two dimensional plane to another. The Motion Event also has an action that is very useful for handling multi-touch gestures, called <a href=\"http:\/\/developer.android.com\/reference\/android\/view\/MotionEvent.html#ACTION_POINTER_DOWN\">POINTER_DOWN<\/a>, which is used when a second touch is placed on the view.<\/p>\n<p>Using these actions, complex gestures can be created. For example, a pinch gesture (usually used to zoom in on a map) could work like this:<\/p>\n<p>1. Received DOWN. We record the initial spot where the user touched the screen.<\/p>\n<p>2. Received POINTER_DOWN. Since we know this could be a two finger gesture, we record the spot of the second touch<\/p>\n<p>3. Received MOVE. Now we check to see if the two pointers we have detected have moved towards each other. *<\/p>\n<p>*Note that within a Motion Event object, it is possible to get the coordinates of different touches by using the event.getX() method.<\/p>\n<p><strong>Gesture Predictions<\/strong><\/p>\n<p>Android also has a way to load in specific gestures to your application as well. These specific gestures can be more unique than the ones mentioned above, such as drawing a Z symbol on the screen.<\/p>\n<p>Creating these types of gestures requires the Emulator. You first draw your gestures in the emulator, and then you save them into a file. You can then take your created gesture file and load it into your application. By adding a <a href=\"http:\/\/developer.android.com\/reference\/android\/gesture\/GestureOverlayView.html\">GestureOverLayView<\/a> onto your Layout, you can use your newly-created gestures to do whatever you would like.<\/p>\n<p>Click <a href=\"http:\/\/developer.android.com\/resources\/articles\/gestures.html\">here<\/a> to get some more information on Gesture Predictions. <\/p>\n<p><strong><i>Reference: <\/i><\/strong><a href=\"http:\/\/www.programmingmobile.com\/2011\/09\/android-tutorial-adding-gestures-to.html\">Android Tutorial: Adding Gestures to Your App<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/p\/jcg.html\">JCG partner<\/a> <span class=\"Apple-style-span\" style=\"background-color: white;color: black;font-family: arial,sans,sans-serif;font-size: 13px;font-style: normal;font-variant: normal;font-weight: normal;letter-spacing: normal;line-height: normal;text-indent: 0px\">Isaac&nbsp;Taylor <\/span>at the <a href=\"http:\/\/www.programmingmobile.com\/\">Programming Mobile blog<\/a>. <\/p>\n<div style=\"margin: 0px\"><strong><i>Related Articles :<\/i><\/strong><\/div>\n<ul>\n<li><a href=\"http:\/\/www.javacodegeeks.com\/2010\/10\/android-full-application-tutorial.html\">\u201cAndroid Full Application Tutorial\u201d series<\/a><\/li>\n<li><a href=\"http:\/\/www.javacodegeeks.com\/2011\/02\/android-google-maps-tutorial.html\">Android Google Maps Tutorial<\/a><\/li>\n<li><a href=\"http:\/\/www.javacodegeeks.com\/2011\/01\/android-quick-preferences-tutorial.html\">Android Quick Preferences Tutorial<\/a><\/li>\n<li><a href=\"http:\/\/www.javacodegeeks.com\/2010\/09\/android-text-to-speech-application.html\">Android Text-To-Speech Application<\/a><\/li>\n<li><a href=\"http:\/\/www.javacodegeeks.com\/2011\/03\/android-http-camera-live-preview.html\">Android HTTP Camera Live Preview Tutorial<\/a><\/li>\n<li><a href=\"http:\/\/www.javacodegeeks.com\/2011\/06\/android-dependency-injection-testing.html\">Android Dependency Injection and Testing Libraries<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Gestures in mobile apps are pretty common place these days. Almost anyone with smart phone experience knows that pinching will usually zoom in on an image. Now, using Gestures in Android is a snap. OnTouch All gestures are really handled with one event on an Activity. OnTouch is called anytime a View is touched on &hellip;<\/p>\n","protected":false},"author":62,"featured_media":46,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[254,83],"class_list":["post-546","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android-core","tag-android-gestures","tag-android-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Android Tutorial: Gestures in your app - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Gestures in mobile apps are pretty common place these days. Almost anyone with smart phone experience knows that pinching will usually zoom in on an\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android Tutorial: Gestures in your app - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Gestures in mobile apps are pretty common place these days. Almost anyone with smart phone experience knows that pinching will usually zoom in on an\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2011-09-20T16:01:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-10-21T20:13:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/android-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Isaac Taylor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Isaac Taylor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html\"},\"author\":{\"name\":\"Isaac Taylor\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/17dd4803edecab35097b829b9fb29864\"},\"headline\":\"Android Tutorial: Gestures in your app\",\"datePublished\":\"2011-09-20T16:01:00+00:00\",\"dateModified\":\"2012-10-21T20:13:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html\"},\"wordCount\":757,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/android-logo.jpg\",\"keywords\":[\"Android Gestures\",\"Android Tutorial\"],\"articleSection\":[\"Android Core\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html\",\"name\":\"Android Tutorial: Gestures in your app - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/android-logo.jpg\",\"datePublished\":\"2011-09-20T16:01:00+00:00\",\"dateModified\":\"2012-10-21T20:13:40+00:00\",\"description\":\"Gestures in mobile apps are pretty common place these days. Almost anyone with smart phone experience knows that pinching will usually zoom in on an\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/android-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/android-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/09\\\/android-tutorial-gestures-in-your-app.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/android\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Android Core\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/android\\\/android-core\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Android Tutorial: Gestures in your app\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/17dd4803edecab35097b829b9fb29864\",\"name\":\"Isaac Taylor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c7c1ca3c713ef9723991b650cef8ad4ce2020c667b36c12b34ae43a36c31ca5f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c7c1ca3c713ef9723991b650cef8ad4ce2020c667b36c12b34ae43a36c31ca5f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c7c1ca3c713ef9723991b650cef8ad4ce2020c667b36c12b34ae43a36c31ca5f?s=96&d=mm&r=g\",\"caption\":\"Isaac Taylor\"},\"sameAs\":[\"http:\\\/\\\/www.programmingmobile.com\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/Isaac-Taylor\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android Tutorial: Gestures in your app - Java Code Geeks","description":"Gestures in mobile apps are pretty common place these days. Almost anyone with smart phone experience knows that pinching will usually zoom in on an","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html","og_locale":"en_US","og_type":"article","og_title":"Android Tutorial: Gestures in your app - Java Code Geeks","og_description":"Gestures in mobile apps are pretty common place these days. Almost anyone with smart phone experience knows that pinching will usually zoom in on an","og_url":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2011-09-20T16:01:00+00:00","article_modified_time":"2012-10-21T20:13:40+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/android-logo.jpg","type":"image\/jpeg"}],"author":"Isaac Taylor","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Isaac Taylor","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html"},"author":{"name":"Isaac Taylor","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/17dd4803edecab35097b829b9fb29864"},"headline":"Android Tutorial: Gestures in your app","datePublished":"2011-09-20T16:01:00+00:00","dateModified":"2012-10-21T20:13:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html"},"wordCount":757,"commentCount":2,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/android-logo.jpg","keywords":["Android Gestures","Android Tutorial"],"articleSection":["Android Core"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html","url":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html","name":"Android Tutorial: Gestures in your app - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/android-logo.jpg","datePublished":"2011-09-20T16:01:00+00:00","dateModified":"2012-10-21T20:13:40+00:00","description":"Gestures in mobile apps are pretty common place these days. Almost anyone with smart phone experience knows that pinching will usually zoom in on an","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/android-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/android-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2011\/09\/android-tutorial-gestures-in-your-app.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Android","item":"https:\/\/www.javacodegeeks.com\/category\/android"},{"@type":"ListItem","position":3,"name":"Android Core","item":"https:\/\/www.javacodegeeks.com\/category\/android\/android-core"},{"@type":"ListItem","position":4,"name":"Android Tutorial: Gestures in your app"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/17dd4803edecab35097b829b9fb29864","name":"Isaac Taylor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c7c1ca3c713ef9723991b650cef8ad4ce2020c667b36c12b34ae43a36c31ca5f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c7c1ca3c713ef9723991b650cef8ad4ce2020c667b36c12b34ae43a36c31ca5f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c7c1ca3c713ef9723991b650cef8ad4ce2020c667b36c12b34ae43a36c31ca5f?s=96&d=mm&r=g","caption":"Isaac Taylor"},"sameAs":["http:\/\/www.programmingmobile.com\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/Isaac-Taylor"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/62"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=546"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/546\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/46"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}