0
我想添加背景图像到视图。图像真的很宽,不是很高。它是6400 x 480.我想要图像填充安卓屏幕的高度并保持其纵横比。我似乎无法得到这个工作。Android应用程序的背景图像填充高度,但不是宽度
<ImageView
android:id="@+id/background"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/background"
android:scaleType="fitStart"
android:layout_alignParentBottom="true" />
请记住,我已经尝试所有选项与scaleType,它只是没有给予预期的效果。我希望能够将图像移动到左边,以便稍后显示图像的其余部分。
任何意见,提示将是伟大的!也许我正在做这个错误的方式。