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,它只是沒有給予預期的效果。我希望能夠將圖像移動到左邊,以便稍後顯示圖像的其餘部分。
任何意見,提示將是偉大的!也許我正在做這個錯誤的方式。