Android ImageView 图片拉伸

给ImageView添加一条android:scaleType="fitXY"属性

使用如下:图片会拉伸至控件最大,注意变形哦

        <ImageView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:background="@mipmap/login_back"
            android:scaleType="fitXY" />

猜你喜欢

转载自blog.csdn.net/LikeBoke/article/details/84388588