您的位置:首页 > 其它

Drawable getIntrinsicWidth() and getIntrinsicHeight()

2016-07-22 14:47 471 查看


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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: