首页 > 移动平台 > 详细

Android View Attributes

时间:2014-03-05 02:07:56      阅读:567      评论:0      收藏:0      [点我收藏+]

 

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 legacy MeasureSpec and RelativeLayout behavior.

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

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

Android View Attributes,布布扣,bubuko.com

Android View Attributes

原文:http://www.cnblogs.com/qiengo/p/3580279.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!