【发布时间】:2013-04-14 16:45:26
【问题描述】:
我看到许多使用全屏图像作为背景的应用程序。 这是一个例子:
我想在项目中使用它,到目前为止我发现的最佳方法是使用大尺寸的图像,将其放入ImageView 并使用android: adjustViewBounds="true" 调整边距
问题是,如果屏幕的分辨率非常高,图像就会不足。
我想到的另一个选择是在FrameLayout 中使用图像,在width 和height 中使用match_parent 作为背景...这会拉伸图像,但我认为结果不是很好.
你会怎么做?
【问题讨论】:
-
不要相信这适用于背景,但它应该适用于图像。
android:scaleType="centerCrop"
标签: android background imageview android-framelayout