ImageView

  android:adjustViewBounds

  Set this to true if you want the ImageView to adjust its bounds to preserve the aspect ratio of its drawable.

  Note:If the application targets API level 17 or lower, adjustViewBounds will allow the drawable to shrink the view bounds, but not grow to fill available measured space in all cases. This is for compatibility with legacyMeasureSpecandRelativeLayoutbehavior.

  是否保持宽高比。需要与maxWidth、MaxHeight一起使用,否则单独使用没有效果。

  android:cropToPadding
  是否截取指定区域用空白代替。单独设置无效果,需要与scrollY一起使用

更多相关文章

  1. Android(安卓)Material design设计风格
  2. 使用U3D 实现 Android(安卓)Launcher(提供源码)
  3. Android(安卓)一个简单的自定义WheelView实现
  4. Android实现ViewPager无限循环效果(二)
  5. Android(安卓)CheckBox设置背景selector和文本text 设置selectCo
  6. android源码链接
  7. Android中使用TagFlowLayout制作动态添加删除标签
  8. popup menu案例,无说明只代码
  9. android studio 开发 cordova plugin(组件)的 helloWorld

随机推荐

  1. 如何下载php开源代码
  2. USDT PHP开发包OmniTool简介
  3. php中什么是魔术引号
  4. php如何设置日期
  5. php之日期时间操作一箩筐
  6. wampserver怎么下载
  7. PHP如何实现短网址
  8. php适合做微服务么
  9. php array_chunk函数怎么用
  10. php技术栈是什么