[b][size=medium]ImageView的xml属性[/size][/b]
android:adjustViewBounds
是否在调整好scaleType后,调整ImageView的界限(bounds)
[img]http://dl.iteye.com/upload/attachment/544631/e55c8079-83c0-3062-9c69-1e70ae082a2d.png[/img]
android:cropToPadding
是否裁剪ImageView的图片,以让它处于padding内部
[img]http://dl.iteye.com/upload/attachment/544618/3f451bab-9dce-3ffa-8dff-2bb68011ccdb.png[/img]
android:maxHeight
当layout_height="wrap_content"时,最大的高度
android:maxWidth
当layout_width="wrap_content"时,最大的宽度
android:scaleType
ImageView的src图片如何进行缩放
[img]http://dl.iteye.com/upload/attachment/459707/6807e4c4-4e69-324f-9925-cff0c6537dbe.png[/img]
android:tint
一个对图片进行着色的颜色
[img]http://dl.iteye.com/upload/attachment/544624/59a686aa-57a7-3763-b7f2-337d50e80d40.png[/img]
[b][size=medium]ImageView的使用[/size][/b]
ImageView的使用很简单,只介绍如何用Matrix来变化ImageView中的图片(即:setImageMatrix)和setColorFilter的使用
setImageMatrix
[img]http://dl.iteye.com/upload/attachment/544622/f2f989d8-bb2e-3e42-adde-3a1507eade15.png[/img]
setColorFilter
[img]http://dl.iteye.com/upload/attachment/544620/e3768bd6-a988-37d3-a455-dad872fdc2a5.png[/img]
android:adjustViewBounds
是否在调整好scaleType后,调整ImageView的界限(bounds)
[img]http://dl.iteye.com/upload/attachment/544631/e55c8079-83c0-3062-9c69-1e70ae082a2d.png[/img]
android:cropToPadding
是否裁剪ImageView的图片,以让它处于padding内部
[img]http://dl.iteye.com/upload/attachment/544618/3f451bab-9dce-3ffa-8dff-2bb68011ccdb.png[/img]
android:maxHeight
当layout_height="wrap_content"时,最大的高度
android:maxWidth
当layout_width="wrap_content"时,最大的宽度
android:scaleType
ImageView的src图片如何进行缩放
[img]http://dl.iteye.com/upload/attachment/459707/6807e4c4-4e69-324f-9925-cff0c6537dbe.png[/img]
android:tint
一个对图片进行着色的颜色
[img]http://dl.iteye.com/upload/attachment/544624/59a686aa-57a7-3763-b7f2-337d50e80d40.png[/img]
[b][size=medium]ImageView的使用[/size][/b]
ImageView的使用很简单,只介绍如何用Matrix来变化ImageView中的图片(即:setImageMatrix)和setColorFilter的使用
setImageMatrix
[img]http://dl.iteye.com/upload/attachment/544622/f2f989d8-bb2e-3e42-adde-3a1507eade15.png[/img]
setColorFilter
[img]http://dl.iteye.com/upload/attachment/544620/e3768bd6-a988-37d3-a455-dad872fdc2a5.png[/img]