Found the solution myself in the end. The problem was not with the LinearLayout, but with the ScrollView (seems weird, considering the fact that the ScrollView was expanding, while the LinearLayout wasn't). The solution was to use android:fillViewpo
当你想让一个高度值不足scrollview的子控件fillparent的时候,单独的定义android:layout_height="fill_parent"是不起作用的,必须加上fillviewport属性, 当子控件的高度值大于scrollview的高度时,这个标签就没有任何意义了. Romain Guy write a little info about a ScrollView attribute that is missing from documentation :andr