getIntrinsicWidth

Added in  API level 1
int getIntrinsicWidth ()

Returns the drawable's intrinsic width.

Intrinsic width is the width at which the drawable would like to be laid out, including any inherent padding. If the drawable has no intrinsic width, such as a solid color, this method returns -1.

getIntrinsicHeight

Added in  API level 1
int getIntrinsicHeight ()

Returns the drawable's intrinsic height.

Intrinsic height is the height at which the drawable would like to be laid out, including any inherent padding. If the drawable has no intrinsic height, such as a solid color, this method returns -1.


=================================================================================================






原文URL:http://stackoverflow.com/questions/6536418/why-are-the-width-height-of-the-drawable-in-imageview-wrong

更多相关文章

  1. Talking about Android(安卓)process
  2. Service API changes starting with Android(安卓)2.0
  3. Android开发必备的21个免费资源和工具
  4. [翻译]Android单手指缩放-第四部分(Android(安卓)one finger zoom
  5. 转:android 删除editText的内容
  6. Android(安卓)TextView 字段设置监听事件
  7. 用Preferences,通过xml文件跳转到另一个Activity
  8. [置顶] 我的Android进阶之旅------>Android的ListView数据更新后
  9. Android的Master/Detail风格界面中实现自定义ListView的单选

随机推荐

  1. android 新建项目中去掉标题栏
  2. Android:打开程序的全屏页面
  3. android中的Touch研究
  4. android与webService的数据传输---数据表
  5. Android清除本地数据缓存代码案例
  6. Android(安卓)Robotium小结
  7. 利用半透明对话框实现新浪微博android客
  8. Android内核学习——SearchManager分析
  9. android 自定义水平和圆形progressbar 只
  10. Android(安卓)系统启动时自启动一个app