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'
Related
I have 4 images at the bottom of my screen (but in the future I can have more) and 1 image at the top.
I would like to click on the bottom images one at a time and drag to the top image and at the end save the image from above with all the images.
Note: The user can drag one, two or no image so it depends on it.
I have an example below:
enter image description here
Any tips on how I can do this?
Any API?
Or a Framework?
Any examples in git?
You can download this example and change it to meet your requirement.
I just tested and it works perfectly on Android emulator.
Here is a gif:
Refer: xamarin-imageview-drag-sample
I have recently started to learn android application development. Now I have some troubles in the image insertion. When i use the default images (launcher_background) my application seems to work fine. But any time I try to insert a HD image the application seems to stop. This has been going on for quite a while now.
Mybe it's because your image size is too big if your image is too big you should change image width and height to size of the image view or device display
There are thred party libaries you can use like :
https://github.com/Piasy/BigImageViewer
For more information see the links below :
https://developer.android.com/topic/performance/graphics/load-bitmap.html
https://android.jlelse.eu/loading-large-bitmaps-efficiently-in-android-66826cd4ad53
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.
I have to load and display some very large images, some have size A0(33.1 × 46.8 inches) .I did follow the way Google map display map by split the image in to may tile( size 128x128 pixel) in difference zoom levels ( for zooming in/out) and load them on the view , but i still get stuck on the performance issues , it doesn't smooth enough . I think some as you have faced the same issue and got the idea to solved, so if you can please shared with me and everybody . As i know there is a CATiledLayer Class for doing this work on iOS system . Any help will be appreciated.
Check this. According to its README it's a "A tiling scrollview to display large picture (similar to iOS "CATiledLayer")"
there is one third party library called MapView,
this is best to load very large images.
try this link
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