私の頭は少し混乱しています...次の XML では、LinearLayout/TextView が ScrollView と同じサイズであることが期待されます。含まれている画像からわかるように、これは当てはまりません。
ここで何が起こっているのですか?LinearLayout が ScrollView と同じサイズでないのはなぜですか?
<ScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#008B8B" >
<LinearLayout
android:id="@+id/contentLayout"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#DC143C" >
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="hello" />
</LinearLayout>
</ScrollView>