Android - 设置ImageView为全屏显示

it2025-07-06  15

设置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"/>

转载于:https://www.cnblogs.com/bhlsheji/p/5060240.html

相关资源:Android ImageView图片放大到全屏显示
最新回复(0)