【发布时间】:2016-04-25 19:45:05
【问题描述】:
我不知道如何让图像填满屏幕,已经尝试了所有方法,也许我应该使用一些特定的布局..?
我使用的是 ImageView,但它只占了屏幕的 70%,底部留有空白...
目前我只是使用 LinearLayout 并将其背景设置为我的图像。虽然这会填满屏幕,但图像会略微拉伸,这是我不想要的。
任何帮助将不胜感激! :)
我的布局文件的 ImageView 标签内的代码是:
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:adjustViewBounds="true"
android:src="@drawable/image"
【问题讨论】:
-
android:layout_height="match_parent" 会做