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 8595439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:26:00+00:00 2026-06-12T00:26:00+00:00

I am trying to implement drag and drop on a GridView in android (ICS),

  • 0

I am trying to implement drag and drop on a GridView in android (ICS), but when I drag the item to the edge of the screen, the GridView doesn’t scroll. How can I implement this functionality?

  • 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-06-12T00:26:02+00:00Added an answer on June 12, 2026 at 12:26 am

    First of all if you don’t need to support android 2.x ( API <11 ) this Andorid Drag and Drop tutorial is what you are looking for. I’ve never tried that way cause i had to implement it on 2.x but i took a look at it seems pretty straight forward.

    To implement the autoscroll i guess you could use ACTION_DRAG_EXITED or ACTION_DRAG_LOCATION on the grid view and fire the scroll manually when you see that the location is next to the view bounds.

    If you instead have to implement it on 2.x then it’s going to be much more hard, you basically need to implement all the DRAG events, or a subset of them, by yourself.
    I did in once with a ListView and what you have to do is:

    • Override the gridView touchEvent.
    • Use the actions ACTION_MOVE, ACTION_DOWN, ACTION_UP to fire the Drag events

    Enable the drawing cache on the GridView items( setDrawingCacheEnabled ) and use getDrawingCache() to copy the bitmap of the view on DRAG_START.
    Than what you have to do is to use that bitmap drawn on top of the GridView at the position that the ACTION_MOVE event gives you.

    it’s not easy but if you take your time you can manage to get it.

    what more, I haven’t check today but maybe you can try to google a bit an see if someone took the time to implement it and release it Open Source.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement drag/drop/sort between 2 list elements: <ul id=first> <li>item 1</li> <li>item
I am trying to implement drag and drop so I can sort lists of
I'm trying to implement a WPF application with drag&drop functionality using MouseDragElementBehavior. But I
I'm trying to implement drag and drop behaviour between a bunch of ListViews. I've
I'm trying to implement drag and drop functionality in a Surface Application that is
We're trying to implement drag and drop in Silverlight (3). We want users to
I am trying to implement drag and drop for a treeview control that binds
I am trying to implement a drag and drop feature. On the left pane
I'm trying to implement drag/drop in my TreeView and have it all working except
I am trying to implement drag and drop between two listboxes. I have a

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.