how to drag and drop an image into a gridview - android

This is a diagram of what I am trying to code
basically I want to take an image from an imageview in the main activity frame and insert it into a gridspot in an empty gridview. I do not want these images to be draggable among each other once they are already placed into the gridview. all the tutorials online already have images set into the gridview.

Related

How to Drag and Drop Item (Use ImageView) from One GridView to another GridView in same layout in android?

How to possible for Drag and Drop image from one GridView to another GridView?
I am using only ImageView for one GridView.
TextView and ImageView using for second Gridview.
My screenshot is:
Image set using Piccaso (use Image path). Not download image from server, directly set path using Picasso and display image in GridView Item.
How to do it?
Please suggest a solution.
Thanks.
You could use DynamicGridview. Take a look at this tutorial.

How to get all child visible on screen in HorizontalScrollView android

I add many ImageView to HorizontalScrollView, each ImageView load image from internet. But screen only display 3 ImageView.
I want to know what ImageView is on screen because I want to remove image from another ImageView that not display in screen.
Is there anyway to do that ?
Sorry for my bad English.
You need to consider using lazy ListView instead of <ScrollView> for your images. With a lazy ListView, the app won't download the hidden images until the user scroll to view them.
I'm not familiar with such a ListView but I think those links might help you:
Question: How to do a lazy load of images in ListView?
A solution implemented
Project: Android Universal Image Loader

Some questions about Gallery widget

1.I wish my gallery widget can dispaly 6 images at the same time, and the layout is a 2*3 matrix, and when I slide the screen, the widget display another 6 images, how to code this function?
2.I want to add some dots under the gallery widget to show which page the gallery is displaying, is there a widget can achieve this function?
3.I know hot to load pitcures in the res/drawable, but if my pitcures are in a database, how to load them?
4.I want to add some buttons to set the gallery widget to display different category images, how to code?
thx for your answer!!

How to make Gallery with slide show in Android?

I want to make a Gallery View with slide show and image zooming(as the default gallery in android). I started with implementing ViewFlipper. I have added ImageView to ViewFlipper in runtime. But it takes very long time to load large number of images initially. And i couldn't make image zooming. Can anyone provide good solution take make an efficient gallery view with slideshow and image zooming??

display the images in single row

Hi i want to display the images one by one that means first i am displaying the some (5) images in a single row.when i am track that view next pair is coming.and when i click on particular image that image will be dispayed as big image in layout which is above of this single row layout.For this which layout are useful that means grid view like that.Give me some suggestions.Thanks in advance
Gallery View is your best bet. Just google for its examples.

Categories

Resources