私はTableLayoutの中にTableRowを持っています。 TableRowに垂直ScrollViewを配置すると、期待通りに機能します。しかし、TableRowにHorizontalScrollViewを配置すると、スクロールはまったく機能しません。TableRow内のHorizontalScrollView
これはなぜ起こるのですか?それを達成するための回避策を使用できますか?
ありがとうございます!ここで
--EDIT--
例です。
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TableRow>
<HorizontalScrollView android:scrollbars="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<TableRow>
<Button android:layout_width="350px" android:layout_height="350px" android:text="TEST" />
<Button android:layout_width="350px" android:layout_height="350px" android:text="TEST" />
</TableRow>
<TableRow>
<Button android:layout_width="350px" android:layout_height="350px" android:text="TEST" />
<Button android:layout_width="350px" android:layout_height="350px" android:text="TEST" />
</TableRow>
</TableLayout>
</HorizontalScrollView>
</TableRow>
</TableLayout>
私は垂直ScrollViewにHorizontalScrollView変更すると、それは(明らかに垂直)動作します。
これはparrentで利用可能な場所のサイズのコンテンツinsteatのサイズ(コンテンツサイズ)にScrollViewを設定する必要があります。
レイアウトxmlと関連するJavaを投稿してください。 – Krylez
これを解決しましたか? –