How to swap image in Android - android

I have four images and I want to swap image with each other. For example if I drag the second image into first image then first image placed in second image postion and second image placed in first image postion.

Related

Gridlayout Under vertical list in Recycler view

How to display Recyclerview grid in a recyclerview vertical list.
I need a lay that contains a vertical list. In vertical list row i want to display a grid. This is below structure what i actually want
1st row Heading
Image image image
Image Image Image
2nd row Heading
Image image image
Image Image Image
3rd row Heading
Image image image
Image Image Image
How it possbile. If possible please give me link like above in example
Check this out. https://gist.github.com/gabrielemariotti/4c189fb1124df4556058
Or you can make use of SpanSizeLookup.

How I do add new image on my background images

How do I add new images on my previous background image?
i.e I have selected one image from gallery after that I choose another image from gallery and put it on the previous image.

HorizontalScrollView as gallery, when touch make image bigger

i am trying to implement gallery using HorizontalScrollView.
When user click image image it should "grow up" to show this image like this: (i will have images from drawable folder)
Image Preview
Use PopupWindow. In the layout just put an imageView and fill it with the clicked image.
Check this out http://mobilemancer.com/2011/01/08/popup-window-in-android/

How to decide which item will be shown at first in the screen in android gallery?

I have a gallery that consist of small size of pictures and when I click any of them a gallery comes to screen with bigger images of those small pictures. And for example I clicked the 3. picture of gallery, in the second screen I want to see the 3. picture first but when I scroll it left or right I want to see other pictures. How can I do this?
pass that selected int to next screen and then do this:
galleryView.setSelection(3); //3 or whatever you send your position from previous screen
Remember do this, after setting the Adapter to Gallery.

Android Image Gallery in Grid Form

I am working on a project related to some image viewer. I get images from some server and display their thumbnail version on screen. I want to show the images in 3 x 2 matrix means 2 images per row and 3 rows. Images can be from 1 to 50. User may click on a particular image, its details are loaded and shown on screen. The problem I am facing is how to create a matrix view and when user click on a particular image, how to identify which image was clicked so that its details can be loaded and displayed...???
Gridview is easy way.Besides with fixed matrix, you can use normal layout.GoodLuck

Categories

Resources