您的位置:首页 > 移动开发 > Android开发

Android - 设置ImageView为全屏显示

2015-12-20 08:06 453 查看

设置ImageView为全屏显示

本文地址: http://blog.csdn.net/caroline_wendy
ImageView默认会适应屏幕大小, 假设想使用全屏填充, 则须要使用:
android:scaleType="fitXY"
android:scaleType="matrix"


注意android:scaleType的參数选择.
參考: http://developer.android.com/reference/android/widget/ImageView.html#attr_android:scaleType
总体界面:
<ImageView
android:layout_height="match_parent"
android:layout_width="match_parent"
android:scaleType="fitXY"
android:src="@drawable/healthvideo_background_xxx"/>


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: