Monday, June 20, 2016

Tips: ImageView with AspectFill settings

Recently, I met a small issue of when setting imageView with aspectFill, then images became the original large then break the view's layout. special when use scrollView's pagination you will want a picture for one page. And my trick to working around this is set the "clip subview" for parents view of that imageView. so that you can have just one page for a aspectFill setted imageView nicely. Welcome to share your tricks anytime.

No comments:

Post a Comment