Answer the question
In order to leave comments, you need to log in
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
you are digging in the wrong place, making screens kosher for different sizes, scaling will give you the same small buttons
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...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question