Android 点击拉伸文字和图片的效果

PinchZoomTextView

简介:A TextView library that allows the user to increase/decrease font size with a two finger gesture by the user.

PinchZoomTextView Library

This library allows you to have a TextView that will grow/shrink the font size using gestures from the user.

Usage

To have access to the library, add the dependency to your build.gradle:

	compile 'com.androidessence:pinchzoomtextview:1.0.1'

Developer Notes

By default, the zoom feature is always enabled. If for any reason you want to disable it, simply call thePinchZoomTextView#setZoomEnabled(boolean enabled) method.

Sample

To see the library in action, here is a sample of the text size changing:

Credits & Contact

PinchZoomTextView was created by:

With special thanks to Eric Cugota for helping me get this into Bintray and make it available for you.

And it's released under Android Essence blog.

License

PinchZoomTextView is available under the MIT License. You are free to do with it what you want. If you submit a pull request, please add your name to the credits section. :)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值