38

解决ImageView超出父控件(或屏幕边界)时,图片挤压问题

 5 years ago
source link: https://juejin.im/post/5b8f4e6ff265da0acc793b85
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
一、需求 在屏幕边缘显示一张图片,超出屏幕宽度时,只显示图片的左边部分,并且不被挤压,其余部分剪切。但我在实际开发中,踩了个坑,这里做个记录,下面通过图片直观了解一下情况: 理想 现实 目前可以确定,这种情况会出现在使用Relativ

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK