Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可否增强SketchImageView ScaleType方式 #20

Closed
asker517 opened this issue Dec 1, 2016 · 2 comments
Closed

可否增强SketchImageView ScaleType方式 #20

asker517 opened this issue Dec 1, 2016 · 2 comments

Comments

@asker517
Copy link

asker517 commented Dec 1, 2016

Android本身ImageView支持的ScaleType比较局限,是否考虑能增加更多的scaleType方式呢?例如:CropImageView 如此感觉SketchImageView就更棒了:)

@panpf
Copy link
Owner

panpf commented Dec 5, 2016

这种问题怎么说呢,Sketch本身应该专注的是图片加载的部分,如果这样的功能越来越多,那么SketchImageView势必会越来越臃肿。我看了CropImageView的实现,并不复杂,你可以弄一个你自己的ImageView,继承自SketchImageView,然后把CropImageView的功能集成到你的ImageView中,这样应该是比较好的解决办法。

@asker517
Copy link
Author

asker517 commented Dec 5, 2016

@xiaopansky Well,Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants