How to scroll TextView without using ScrollView?

I need to implement a custom View object that extends TextView and supports scaling and scrolling of enlarged text. The Android documentation says that the TextView class can take care of its own scrolling without using the ScrollView container, but I could not implement this behavior. My custom TextView will have a fixed frame, and usually the text that appears in it will be vertically larger than the frame. If we scale out the text, the text will be larger horizontally. Most of the examples I found used TextView inside ScrollView, but I specifically want to do this only with my extensible TextView class, if possible.

Thank you in advance

+4
source share

All Articles