I have an image which is equal the screen 3 times, how can I put it in a page? How can I maximize it and minimize it (No arrows, no gallery)
I think your trying to accomplish this. Next time, just do a quick Google Search for what your trying to do.
For pinching and zooming go here.
Related
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
I have large landscape image, I want to move that image smoothly across the screen without loosing aspect ratio. If you cant understand my question, please have a look at Android Newsstand app in that the cover image on top of the screen moves smoothly across the screen back and forth. how can i achieve that. please have a look at the image attached. The background image needs to move smoothly to the right when it reaches end it should move back to left.. Where should i start ?. Thanks in advance.
Update: Solution
PanningView is a library which implements the animated background in the now playing screen of the Play Music app.
Have a look at this library https://github.com/flavioarfaria/KenBurnsView
It is exactly what you are asking i hope :-)
Also do give a look at my this, which is modified ken burns view
https://github.com/HasanFaraaz/BackBurn
I am trying to create a horizontal like image gallery on one of my activities. I want it to take up about 1/4 of the screen and when you swipe left or right it'll go to the next image. Also over the bottom portion of the image there is an indicator showing you where you are in the list of images. Similar to what was done in these apps:
I can't seem to find out how to create this in android. I'm hoping someone out there has an idea and can point me in the right direction or to a tutorial.
Have you taken a look at ViewPagerIndicator?
Actually, I got a little problem while building my Android App. I want to create a mini-game in my app. It will works like this:
At the begining an image appears
then the app ask the user to zoom-in the picture
then a grid will appear and seperate the picture into pixels (like the one million pixel wall for example)
the user will have to choose one "pixel" of the grid and he will win (or not) some points.
It seems quite simple but i got some issues:
How can i create this grid? (GridLayout? )
How can i put an invisible Grid (opacity=0) on a picture ? (Grid Layout Option Maybe ? )
How can i use the zoom-in option to be as smooth(natural and simple) as possible?
What should i do in order to turn the Grid opacity to 1 when "the Zoom in" effect has been done ?
I know that some several questions are likely answering to the grid problem but I need some personal advices in order to build my own game. General tips and tricks are welcomed. Explanations will be great.
Thanks in advance.
P.S.: Sorry for my English. It's not really my main language but I hope that I am still understandable.
Actually i've found The GridLayout.setalpha(alpha) Option so i know now how to build a grid and to manipulate his opacity.
I just Need now some informations about how to animate this grid with the zoom-in effect and the Zoom-out effect !
User can select some images to the screen, and be able to select/drag/move/zoom/rotate each image. When an image is selected, it will have a blue border. And user can also bring an image to the front or background.
Here is sample picture in the following: there are two images(girls) on a star-background. The top one has been selected(it has a blue border).
I don't know have to implement it. For several days of learning, I can now drag/move/zoom/rotate a single image(inside an imageview, and scaled by matrix). But I don't know how to handle multi-images.
I want to know:
Is it still a good idea to use ImageView(for each image), or what classes should I use?
How to implement the orders? (so I can bring them to front or background)
How to determine which image has been selected
How to find and draw the border of selected image?
For now, I just know how to use ImageView, but I'm not sure if I can use it to implement this task. Please give me some advices, thanks !
Drawing everything directly onto a Canvas is one way of doing it. There is an article that covers the basics of using a Canvas. You can read it HERE
There is one major downside in doing this - you have to handle all the input events by yourself. The API won't tell you which image has been clicked, or dragged. You'll have to implement that by yourself.