ImageView zooming in android through code - android

I am developing Android application for book. I create total images for book is one hundred. In the app two buttons present one is previous button and second is next button. The previous button and next move images forward and back correctly. But now I want to implement zooming effect for image. But the text are some smalls not seen correctly. Please help. Thank you

Below are the options available for implementing zoom in-out effect in android Imageview.
How to implement zoom effect for image view in android?
Android imageView Zoom-in and Zoom-Out
https://github.com/chrisbanes/PhotoView

https://github.com/jsibbold/zoomage
Much better than the offered alternatives here IMHO

Related

How to zoom an image when we touch it and zoom out when touch releases android

I am working on an android application and want to same effect on popup images as Facebook shows on reactions icons when we click on Like button in feeds.
Please check the below image.
I am using Dialog box and Recyclerview inside it to show these images. These images are being shown using ImageView in recyclerview. Now I want to apply such a effect that whenever I touch any image of recyclerview, it should show the view like above image (Zoom + description of that image).
How can I apply this effect on images.
Please provide me an idea about this, so that I can proceed further.
Thanks a lot in advanced.

How to multi touch and move view on image like a camera?

I'm working on image multi touch events, that have an image with touchEvents like googleMaps's touchEvents( pinchZoom and move togather with 2 fingers ), I tried GestureImageView and cusomized it and could implement that. but I'm not sure it is correct way or there is another method for it.Is there any way to do that ?
also I want to show different parts of the large image by clicking on each part and show theme so that it seams that camera moves view on the image.
Is there any library or any tools for this purpose in android?
I will be appreciate if help me.
Thank you.

Carousel Animation in Android

See below screen I have tried to implement this animation using cover flow as we as Carousel animation but I am not getting same as represented in screen. if any body have done this type of animation please send me the code snippet,
I encountered the similar problem in my app sometime ago, Although I haven't worked on the numbers that you are displaying in bottom right corner of your image, but this link will provide you the full code for making a gallery like view with center image zoom.
You can also set the images according to the number, that you are showing in bottom right, I am doing this in my code now, but if you can understand the code for gallery, then you can also make the code for showing images according to number also or you can show the number according to image.
Here is nice solution https://github.com/davidschreiber/FancyCoverFlow.
I've tried it on Android 4.4 and 2.3.3
Edited. OK. Link below points on FancyCoverFlow lib . That provides few kinds of carousel animation of images.

Flip an Imageview with two images back to back

I need to have a set of Image views on a Linear Layout. &
==> onClick of an ImageView, I want to turn the Image to the back(Like Flipping Effect) & show another Image.
==> Again on click of that Image or another Image, I want to apply the same effect for that Image View & the Previous Imageview must come to the default position.
---> I just checked the FLIP ANIMATION in Android. But it is flipping the total view.
So I Just need How to flip an Image view in the same manner, with support from Android v2.2 & up
I think it is quite complicated but it is interesting & need some help how to achieve this as I am just learning the Android(& Coding).
Thanks.!!!
You can use this small library to do that :
https://github.com/castorflex/FlipImageView

how to change the image position by finger in java android

I use the code below to display an image in the screen.
ImageView img = (ImageView) findViewById(R.id.imageView1);
img.setImageResource(R.drawable.car);
I want to let the user, to reposition it by finger to any place.
which one I can use?
setOnTouchListener
onDrag
This is when I have two cars. and the background is another bitmap image.
You can do so.
But its a bit complicated.
Have a look at this great tutorial:
http://blahti.wordpress.com/2011/01/17/moving-views-part-2/
You can use both but it depend upon your requisite like what you what ie you just want to re position your image where ever user touches on screen or else you want to longpress it and then drop where user the touch movement end ............. for Ist case go these Move ImageView around inside RelativeLayout and for second case use these Drag and drop images in android
To change the image position by finger in java android you will need to work with
Surface View and onTouchListener both of them have described precisely in Android Developer Site.
You also can check this question from which you will get help
Touch and drag image in android
Happy Coding.

Categories

Resources