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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:39:47+00:00 2026-05-27T23:39:47+00:00

I am loading an image onto the screen and i want to be able

  • 0

I am loading an image onto the screen and i want to be able to drag and drop that image into a part of a grid. I am not sure how to approach this? I have looked on the web but there isnt any good tutorials for dragging and dropping into a gridview. i understand the drop target is a gridview and that will need to accept a drop.

ImageView image = (ImageView) findViewById(R.id.image1);
     image.setImageResource(R.drawable.gopher);

     image.setOnLongClickListener(new OnLongClickListener(){

        @Override
        public boolean onLongClick(View v) {


            return false;
        }

    });

I am ok with loading the image into a grid and then be able to move that image around that grid if thats easier way to go. However, as long as the loaded images dont look like there in a grid but i still see the sections of the grid for dropping.

Any help / direction is much appreciated.

  • 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-27T23:39:48+00:00Added an answer on May 27, 2026 at 11:39 pm

    I was looking for an drag and drop tutorial and came across this.

    https://blahti.wordpress.com/2011/10/03/drag-drop-for-android-gridview/

    I tried it out and it works. Note that it was written for Android 2.2 so it does not depend on the Drag and Drop framework in Android 3.0 and newer.

    http://developer.android.com/guide/topics/ui/drag-drop.html

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

Sidebar

Related Questions

I want to use show a Loading Image on the click of server side
I have a loading image that works using the code below. It shows the
I have a jQuery function that shows a 'loading' image and disable the submit
I recently implemented a loading image and noticed that ever 10 seconds, that the
[Edit] Note: These projects are projects that I have copied and renamed. Not sure
I'm loading an image onto a texture map with GLGE (sorta like webGl). However
So I am loading multiple images onto multiple canvases basically (one image per canvas/ctx
I have this little form that has a button loading a little icon onto
I am loading image from url coming from xml image not showing image CGRect
How to show loading image when a big image is being loaded? As an

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.