Android ImageView深入理解

来源:互联网 发布:创世传说 知乎 编辑:程序博客网 时间:2024/06/07 14:32

1.ImageView是用来干什么的?

Displays an arbitrary image, such as an icon. The ImageView class can load images from various sources (such as resources or content providers), takes care of computing its measurement from the image so that it can be used in any layout manager, and provides various display options such as scaling and tinting.

用来显示任何图片的,并且提供多种显示选项比如缩放和着色,其中有一句没看懂 takes care of computing its measurement from the image

2.ImageView.ScaleType是干嘛的?

Options for scaling the bounds of an image to the bounds of this view.

缩放图片边界尺寸与控件边界尺寸一样大小的选项。ScaleType是ImageView控件的一个重要属性。

3.ImageView.ScaleType如何使用?

 




































0 0
原创粉丝点击