• Stars
    star
    290
  • Rank 142,981 (Top 3 %)
  • Language
    Java
  • Created about 9 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.