PinchZoomTextView Library Released

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 iamges. 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. Check out the sample gif below:

Sample Gif

Interested in using this in your next project? You can get more details by viewing the library on GitHub.

Adam McNeilly

Adam McNeilly
Adam is a Google Developer Expert for Android. He's been developing apps since 2015, and travels the world to present and learn from other Android engineers.

Wrapping Android XR For KMP

Recently I've been finding myself immersed in [Compose Multiplatform](https://github.com/JetBrains/compose-multiplatform), a way to build...… Continue reading

Interface Naming Conventions

Published on February 05, 2023

The Imposter's Guide To Dependency Injection

Published on January 31, 2022