このレイアウトにスクロールビューレイアウトを追加しようとしています:
I'm getting this error.
ScrollView can host only one direct child
How can I solve this problem?
このレイアウトにスクロールビューレイアウトを追加しようとしています:
I'm getting this error.
ScrollView can host only one direct child
How can I solve this problem?
scrollView は、彼の中に複数の子を含めることはできません
違う
<ScrollView>
<LinearLayout>
xxxxx
</LinearLayout>
<LinearLayout>
xxxxx
</LinearLayout>
<ScrollView>
右
<ScrollView>
<LinearLayout>
<LinearLayout>
xxxxx
</LinearLayout>
<LinearLayout>
xxxxx
</LinearLayout>
</LinearLayout>
<ScrollView>
直系の子は一人だけ。
ScrollView 内に追加できるビューは 1 つだけです。したがって、 ScrollView 内に L1 などの LinearLayout を追加し、その LinearLayout(L1) 内に、他のすべての Views を追加します。