Android - 设置ImageView为全屏显示

设置ImageView为全屏显示


本文地址: http://blog.csdn.net/caroline_wendy


ImageView默认会适应屏幕大小, 假设想使用全屏填充, 则须要使用:
android:scaleType="fitXY"
android:scaleType="matrix"


注意android:scaleType的參数选择.


总体界面:
    <ImageView
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:scaleType="fitXY"
        android:src="@drawable/healthvideo_background_xxx"/>








posted @ 2015-12-20 08:06  phlsheji  阅读(1721)  评论(0编辑  收藏  举报