Skip to content
A custom TextView, when pinch in out gesture used, then it reizes text size.
Branch: master
Clone or download
Pull request Compare This branch is even with nomanr:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app
gradle/wrapper
.gitignore
README.md
build.gradle
demo.gif
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

ZoomTextView

A custom TextView, when pinch in out gesture used, then it reizes text size.

How to use ? Import the ZoomTextView.java class in your project and use it as following.

 <noman.zoomtextview.ZoomTextView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center"
        android:text="@string/sample_string"/>

Can also set the zoom in threshold using this method

 textView.setZoomLimit(float value);

Initial value of threshold is 3.0, so text will be zoomed 3 times its original size.

You can’t perform that action at this time.