さまざまなレイアウトを含む私のアプリケーション。そのうちの1つは線形レイアウトです。コンテンツは動的に追加されます。このレイアウトを水平方向にスクロール可能にしたいのです。このために、レイアウトをスクロールビューに配置しましたが、それでもスクロールしません。以下に私のコードを示します
<LinearLayout android:id="@+id/scoreballparent_layout"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_above="@+id/score_layout">
<ScrollView android:layout_height="wrap_content"
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
>
<LinearLayout android:layout_width="fill_parent"
android:id="@+id/scoreball_layout"
android:layout_height="wrap_content"
android:isScrollContainer="true"
android:scrollbars="horizontal">
</LinearLayout>
</ScrollView>
</LinearLayout>