跳转到内容

ImageView图像

说明

图像

使用示例

<ImageView android:layout_height="wrap_parent"
android:layout_width="match_parent"
android:src="@drawable/a"
/>
<ImageView android:layout_height="wrap_parent"
android:layout_width="match_parent"
android:src="http://baidu.com"
/>

属性说明

公有属性

请参考 公有属性

私有属性

属性名说明可选值
src图像地址字符串
HTTP的URL或者IEC文件中的图像(@drawable/aaa这样的写法)
scaleType图像缩放方式用法参考 /