Drawable getIntrinsicWidth() and getIntrinsicHeight()
2016-07-22 14:47
471 查看
getIntrinsicWidth
Added in API level 1int 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 1int 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
相关文章推荐
- 修改tomcat启动时间
- 【转载】JAVA知识点集锦(中)
- jsp&servlet报红线javax.servlet.jsp.XXXX cannot be resolved to a type类似错误解决办法
- POJ 3126-Prime Path-广度优先搜索bfs
- 在 Django 中构建 Oracle 数据库支持的 Web 应用程序
- Android四大组件之三:BroadcastReceiver
- Binary Tree Preorder Traversal
- 熊先生做原型之对于原型设计中高保真的理解
- 【转载】JAVA知识点集锦(上)
- 设计模式之状态STATE模式(C++)
- 利用BFS、队列求解迷宫问题
- linux 基础学习入门 1
- HTTP协议详解
- 1033. 旧键盘打字(20)-浙大PAT乙级真题
- HTTP协议的头信息 详解解读
- 这几天学习的一点感想
- 手势识别之-----Haar特征提取
- Framework的启动过程
- 可能是讲解Android事件分发最好的文章
- 2016 Multi-University Training Contest 2 1001 Acperience (简单数学)