Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 677 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 677 Bytes

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.