Android7.0中文API --- ImageView
来源:互联网 发布:工程网络计划紧前工作 编辑:程序博客网 时间:2024/06/04 17:47
完整内容请查看http://www.zhdoc.net/android/reference/android/widget/ImageView.html
ImageView
public class ImageView
extends View
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.
显示一个任意的图片,如一个图标。ImageView类可以从不同的源载入图片(如资源或content provider),并负责计算从图像中得到的尺寸,这样它就可以在任何布局管理器中使用,并提供各种显示选项,例如缩放和着色。
摘要
嵌套类
enum
ImageView.ScaleType
Options for scaling the bounds of an image to the bounds of this view.
将图像边界缩放到该视图边界的选项。
XML属性
android:adjustViewBounds
如果希望ImageView调整其边界,并保持其drawable长宽比,则设置为Ture。 android:baseline
此视图中基线的偏移量。 android:baselineAlignBottom
如果为true, 则image view将根据其底部边缘做基线对齐。 android:cropToPadding
如果为true,图片将裁剪以符合其内边距(padding)。 android:maxHeight
可选参数,为此视图的最大高度。 android:maxWidth
可选参数,为此视图的最大宽度。 android:scaleType
控制图像的大小或移动方式以匹配此ImageView的大小。 android:src
ImageView的内容所代表的drawable。 android:tint
图像的tint颜色。 android:tintMode
混合模式,用于图像着色。 继承XML属性
完整内容请查看http://www.zhdoc.net/android/reference/android/widget/ImageView.html
阅读全文
0 0
- Android7.0中文API --- ImageView
- Android7.0中文API---ImageButton
- Android7.0 中文API -- ZoomButton
- Android7.0中文API -- ListView
- android7.0中文API -- LinearLayout
- Android7.0中文API -- TableLayout
- Android7.0中文API -- TableRow
- Android7.0中文API -- ZoomControls
- Android7.0中文API -- TabWidget
- Android7.0中文API -- ActionMenuView
- Android7.0中文API -- RadioGroup
- Android7.0中文API -- SearchView
- Android7.0中文API -- SeekBar
- Android7.0中文API -- ProgressBar
- Android7.0中文API --- AbsSeekBar
- Android7.0中文API -- RatingBar
- Android7.0中文API -- Spinner
- Android7.0中文API -- AbsSpinner
- 1.3为什么要用框架开发
- 练习54
- vs2005 warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
- C#泛型介绍
- java使用POI设置单元格内容下拉框选择和单元格提示功能
- Android7.0中文API --- ImageView
- jzoj P1843【汕头市选2014】小球
- python2.6版本升级为2.7(不知名网站copy,经过修改本人亲测可用)
- 两种输出调试信息的方法
- DIV+CSS
- Java实现二分查找的递归算法
- 无法执行添加/移除操作,因为代码元素**是只读的
- 指向常量的指针和指针类型的常量
- 我也说说Emacs吧(5)