ScrollView里只放一个元素. 当ScrollView里的元素想填满ScrollView时,使用"fill_parent"是无论用的,必需为ScrollView设置:android:fillViewport="true"。 当ScrollView没有fillVeewport=“true”时, 里面的元素(好比LinearLayout)会按照wrap_content来计算(不论它是否设了"fill_parent"),而若是LinearLayout的元素设置了fill_parent,那么也是无论用的,由于LinearLayout依赖里面的元素,而里面的元素又依赖LinearLayout,这样自相矛盾.因此里面元素设置了fill_parent,也会当作wrap_content来计算.