What is Gesture in Android Phone ?

What is Gesture in Android Phone ? Hope You Like The Article- What is Gesture in Android Phone? Don't Forget To Comment And Share The Post.

Android provides special types of touch screen events such as pinch, double tap, scrolls, long presses and flinch. These are all known as gestures.

What is Gesture in Android Phone ?

Android provides Gesture Detector class to receive motion events and tell us that these events correspond to gestures or not. To use it, you need to create an object of GestureDetector and then extend another class with GestureDetector.

SimpleOnGestureListener to act as a listener and override some methods.

GestureDetector myG;
myG = new GestureDetector(this,new Gesture());
class Gesture extends GestureDetector.SimpleOnGestureListener{

   public boolean onSingleTapUp(MotionEvent ev) {
   public void onLongPress(MotionEvent ev) {

   public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
   float distanceY) {
   public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,

   float velocityY) {

Method & description

  1. get EventTime() This method gets the event time of the current event being processed.
  2. get FocusX() This method gets the X coordinate of the current gesture's focal point.
  3. get focused() This method gets the Y coordinate of the current gesture's focal point.
  4. get TimeDelta() This method returns the time difference in milliseconds between the previous accepted scaling event and the current scaling event.
  5. is In Progress() This method returns true if a scale gesture is in progress.
  6. on TouchEvent (MotionEvent event) This method accepts MotionEvents and dispatches events when appropriate.
What is Gesture in Android Phone


Here is an example demonstrating the use of ScaleGestureDetector class. It creates a basic application that allows you to zoom in and out through pinch. To experiment with this example, you can run this on an actual device or in an emulator with touch screen enabled.

Read More
What is Android And Its Versions | Google Android 9.0 Pie Review
Most useful Android Apps of all Time | Best For Android
Top 10 Social Media Apps in World
PlayerUnknown's Battlegrounds PUBG System Requirements | Android, PC, IOS Free Download
Top 10 Mobile antivirus for Android 2019 | Best Antivirus for Android App

I Hope You Like The Article- What is Gesture in Android Phone?  Don't Forget To Comment And Share The Post.

No comments:


Affiliate Marketing,1,Android Apps,8,Android Top Games 2019,1,Antivirus,1,Blogging,2,Cache Memory,2,Computer,16,Computer Assembling,1,Computer Generations,1,Computer Virus,1,Domain,1,Dropshipping Business,1,E Commerce,4,Ebook,1,Evolution of Microsoft windows,6,Facebook Marketing Tutorial,1,Fix Computer Overheating,1,Flipkart Affiliate Program,1,Games,7,Hardware,5,Hindi Computer,6,Hindi Hardware,6,Hindi SEO Tutorial,8,Hindi Software,1,Hindi YouTube,2,how to bootable pendrive,1,How To Do,2,Internet,7,Keyboard,1,Laptop,1,Latest,100,Make Money Selling used items,1,Memory,2,Monitor,1,Mouse,1,Online Money,27,Operating system,11,Operating system Hindi,1,PC Tricks,2,Sell Photos,1,Smartphone,1,Software,3,Technology,1,Top 10,1,Top Stories,12,Twitter,1,Usertesting,1,Web Browser,3,Website,2,WhatsApp,1,Widget for Blogger,1,
NEtechy: What is Gesture in Android Phone ?
What is Gesture in Android Phone ?
What is Gesture in Android Phone ? Hope You Like The Article- What is Gesture in Android Phone? Don't Forget To Comment And Share The Post.
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy