Horizontal scrolling images gallery in android - android

I am working on camera application in android and have a page with a camera preview on half of the screen and an image gallery as shown in image below. Right now, i am using gridview to show image thumbnails in gallery. But, the problem is, i can't make the gallery scrollable(horizontally). I also found that horizontal scrolling is not supported in grid view.
The screenshot i provided is from iphone app and that is working fine. I used uicollectionview in iphone app for the same.
I can't find anything like uicollectionview in android.
Any help will be appreciated. Thanks in advance.

Or you can use additional plugins like this

You could take a look at Gallery if that is what you meant. Just take not that it recently got deprecated and you should either use a HorizontalScrollView or a ViewPager and programmatically add the items.

Related

Adding more than one independent images using a single image view

I am trying to pick images from the gallery in my android application and I want to place them above each other,
but the problem is that I want to use only a single image view.
Does anyone know the code for that?
Thanks for your help.

Image Circulation in android

I have created a app to find the hotels, I am using a slider to show all images related to the hotel's. But I want to get the first image after the last slide in circular fashion.
Get idea through below Picture, Because I want to achieve it in same way.
Sliding SlidingSlidingSliding
All image must be in circular fashion with no end point for image in gallery while sliding.
Please have a look at the below library called InfiniteScrollView.
I think this will do exactly what you are looking for.
https://github.com/satansly/InfiniteScrollView

How to create a grid thumbnail gallery with photo browser for Android

I've just written an app with a nice photo gallery for iOS, now I'd like to do the same thing with my Android version of the app. I see that the Android Gallery API allows me to build a scrolling gallery of images. But what I really want is an apple-photo gallery style interface with a grid of thumbnails which, when tapped, open up a full screen display of the selected image and allows me to navigate through the photo gallery using swipes or left/right arrows on a tool bar.
In iOS I used the KTPhotoBrowser to achieve this interface, but I haven't been able to find anything like that for Android. Can anybody point me to a library, or even a tutorial with example code which will give me an interface like that without having to roll it myself?
Update: I've found the GridView Tutorial which describes how to put image thumbnails into a grid, seems to be the perfect thing. The Gallery API can be used for the full size photo browser as shown in #ariefbayu sample code (see link in comments below). It's not quite the same as the iPhone style gallery, but it's pretty good.
I've done this kind of interface. The basic is:
MainActivity load images into GridView.
On each Gallery click, load another activity using Intent, called SlideActivity which extends 'Gallery' in full screen mode where this will:
show Gallery and set current image to selected
set currently selected image in gallery, to what is clicked in first layout.
Link to sample code: https://www.dropbox.com/s/xk2oupma8zcxqpf/GridToGallery.zip

How to magnify an image programmatically in Android?

I have couple of images showing on Android 2.2 with help of PageViewer (Thanks to supporting libs from android). This works like a charm. But what I am looking for is to magnify each of image (zoom in) when they are displayed automatically/programmatically (Not when the user pinch the image). How can I do this?
I saw this feature on Flickr app of iPhone (this feature is not on Android Flickr app).
Use a good size on the ImageView of each item (match_parent, match_parent) and use android:scaleType='centerCrop' or 'centerInside'

How to create imageview with zoom and pan functionality?

I created an app that has a small image loaded from URL of a website. I want that when user clicks on that small image it'll show the image in full screen and will also have the ability to zoom and pan that image.
What I've done was showing the image in WebView with built-in zoom controls but the result was ugly. (I've set the layout to wrap_content so no white areas are shown, but it cause the image doesn't zoom dynamically).
Any solution? and sorry for my bad English.
Problem solved! For anyone who have the same problem, I've use this library and it works great! http://blog.sephiroth.it/2011/04/04/imageview-zoom-and-scroll/
Here's a link to the Github ImageViewZoom page.
You can build that from scratch or... you can use this library:
http://code.google.com/p/android-pinch
Take a look at the PinchImageView class
You need to use GestureDetectors. Google has excellent sample interactiveChart for this, see https://android.googlesource.com/platform/development/+/master/samples/training/InteractiveChart
and http://developer.android.com/training/gestures/scroll.html

Categories

Resources