我无法在LinearLayout
. 我正在尝试获得白色的背景颜色并ImageView
在我LinearLayout
的图像中显示,并且可以找到背景颜色,但是图像被拉伸了。
什么是比例图像显示它显示正常的好方法?有任何想法吗?
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="#FFFFFF">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<ImageView
android:src="@drawable/day1"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</ImageView>
</LinearLayout>
</ScrollView>