天天看點

android 異常:ScrollView can host only one direct child

android 采用ScrollView布局時出現異常:ScrollView can host only one direct child。

主要是ScrollView内部隻能有一個子元素,即不能并列兩個子元素,是以需要把所有的子元素放到一個LinearLayout内部或RelativeLayout等其他布局方式。

繼續閱讀