V
V
vladocc2015-10-27 13:30:40
Android
vladocc, 2015-10-27 13:30:40

How to implement two-finger zoom in android?

Good day, gentlemen programmers!)
I've been developing a game for Android for some time now. I worked all the time with a large tablet screen and now I naturally encountered the fact that on small screens the application takes up several times more width than it fits on the phone screen. I see it dangerous to reduce the size of the working area of ​​the application, because this will reduce the size of the buttons, and thus the chance that they will be too small. Therefore, in this situation, I do not see any solutions other than zooming with two fingers, which we are all used to seeing in many applications on our smartphones, but to my surprise, Google does not really shine with information on this topic.
Please tell me how to implement it and / or give a link to useful literature on this topic. I will also be grateful for advice on other options for solving my problem.
Thanks to all!)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Gamega, 2015-10-27
@gadfi

you are digging in the wrong place, making screens kosher for different sizes, scaling will give you the same small buttons

A
Adamos, 2015-10-27
@Adamos

Draw a screen and two finger touch points on a piece of paper.
Then again - the screen, two touch points wider (after moving) and the new dimensions of the scene, which previously fit on the screen.
Now back to high school math...

R
razer89, 2015-10-27
@razer89

So what is the actual question? How to catch the gesture itself? Or how to zoom in on the scene?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question