Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 918653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:24:40+00:00 2026-05-15T18:24:40+00:00

What Android Api is used to get the scrolling to the left or to

  • 0

What Android Api is used to get the scrolling to the left or to the right on the start screen on Android?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T18:24:41+00:00Added an answer on May 15, 2026 at 6:24 pm

    The simplest way is by detecting a “Fling” gesture. The android API has a built in detector for basic gestures like flinging, scrolling, long press, double tap, pinch zoom, etc.

    The documentation is available at http://developer.android.com/reference/android/view/GestureDetector.html.

    What you do is create an instance of GestureDetector, override the onTouchEvent method of the view you are interested in detecting gestures for, and pass the MotionEvent to the GestureDetector.

    You also have to supply a OnGestureListener implementation (easiest to extend SimpleOnGestureListener) to the GestureDetector and that will handle all of your gesture events.

    Example:

    class MyView extends View
    {
        GestureDetector mGestureDetect;
    
        public MyView(Context context)
        {
            super(context);
            mGestureDetect = new GestureDetector(new SimpleOnGestureListener()
            {
    
            @Override
            public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) 
            {
            //check if the fling was in the direction you were interested in
            if(e1.getX() - e2.getX() > 0)
            {
            //Do something here
            }
            //fast enough?
            if(velocityX > 50)
            {
            //etc etc
            }
    
            return true;
            }
            }
        }
    
        public boolean onTouchEvent(MotionEvent ev)
        {
            mGestureDetector.onTocuhEvent(ev);
            return true;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to get the API level used by a given Android
I'm writing an API on Android that will be used by an existing application,
I worked on MDM in Android, and used the API's to lock, wipe etc
I followed this tutorial to get started using Android host api with an Arduino
I'm trying to get familiar with Android and its database API. I've created a
I'm using an Android device to get the heading(azimuth, or yaw angle). Android API
I was working on TrafficStats Api and used the following code to get information
I am doing one android application, for that I used com.android.internal API's. They are
I'm making an app for android, I'm using Google Directions API to get and
I am developing an Android (API level 7) app in Eclipse 3.7.2. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.