Public 成员函数 | |
| AbScaleImageView (Context context) | |
| AbScaleImageView (Context context, AttributeSet attrs, int defStyle) | |
| AbScaleImageView (Context context, AttributeSet attrs) | |
| void | recycle () |
| void | setImageBitmap (Bitmap bm) |
| void | setImageDrawable (Drawable d) |
| void | setImageResource (int id) |
| void | setImageWidth (int w) |
| void | setImageHeight (int h) |
Protected 成员函数 | |
| void | onMeasure (int widthMeasureSpec, int heightMeasureSpec) |
Private 成员函数 | |
| void | init () |
Private 属性 | |
| Bitmap | currentBitmap |
| int | imageWidth |
| int | imageHeight |
© 2012 amsoft.cn 名称:AbScaleImageView.java 描述:根据宽度或高度设置图像尺寸,如果未设置取决于图像尺寸
|
inline |
构造方法.
| context | the context |
|
inline |
构造方法.
| context | the context |
| attrs | the attrs |
| defStyle | the def style |
|
inline |
构造方法.
| context | the context |
| attrs | the attrs |
|
inlineprivate |
初始化图片缩放类型.
|
inlineprotected |
描述:onMeasure.
| widthMeasureSpec | the width measure spec |
| heightMeasureSpec | the height measure spec |
|
inline |
回收.
|
inline |
描述:设置图片Bitmap.
| bm | the new image bitmap |
|
inline |
描述:设置图片Drawable.
| d | the new image drawable |
|
inline |
设置View的高度.
| h | the new image height |
|
inline |
描述:设置图片资源.
| id | the new image resource |
|
inline |
设置View的宽度.
| w | the new image width |
|
private |
当前的bitmap.
|
private |
The image height.
|
private |
The image width.
1.8.8