I was recently asked if there was a way to increase/decrease the font size of a TextView by pinching on it, just as you can with many images. Well, it turns out that’s quite possible!
All you have to do is override the
onTouchEvent() method of your view, which is exactly what I do in my latest library, which allows you to pinch your screen to zoom in and out of a TextView. You can view the sample gif here:
Interested in using this in your next project? You can get more details by viewing the library on Github.