Android 在TableLayout中滚动
我想把一个垂直的滚动视图,我已经插入表,我已经尝试了各种方式,但它给我的错误,我希望你能帮助我,问候。 我的xml:Android 在TableLayout中滚动,android,scrollview,tablelayout,Android,Scrollview,Tablelayout,我想把一个垂直的滚动视图,我已经插入表,我已经尝试了各种方式,但它给我的错误,我希望你能帮助我,问候。 我的xml: 我只想把滚动条放到 请帮帮我 尝试将TableLayout封装在: <ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent" android:scrollbars="none" android:layout_weight="1"> <Tabl
我只想把滚动条放到
请帮帮我 尝试将TableLayout封装在:
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="none"
android:layout_weight="1">
<TableLayout
android:id="@+id/LayoutTabla"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/spinnerDatos"
android:layout_centerHorizontal="true"
android:layout_marginTop="39dp" >
现在的问题是,滚动不仅会完全向下,直到桌面布局到达屏幕顶部,你知道吗,为什么?不知道你的意思。你的意思是你看不到整个布局吗?我的问题是我有一个表布局,它动态地获取数据,即没有固定的大小。该故障并没有完全向下滚动。看不到整张桌子。
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="none"
android:layout_weight="1">
<TableLayout
android:id="@+id/LayoutTabla"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/spinnerDatos"
android:layout_centerHorizontal="true"
android:layout_marginTop="39dp" >