我在我的應用程序中使用了一個滾動視圖,如下所示。但屏幕的底部並不是完全可見的,即使我已儘可能向下滾動。我做錯了什麼或者有什麼方法可以解決這個問題?ScrollView不會一直向下滾動
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Name"
/>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" >
<TableLayout
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_centerHorizontal="true">
<TableRow>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="name">
</TextView>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
>
</EditText>
</TableRow> </TableLayout> </LinearLayout> </ScrollView>
滾動視圖直到屏幕底部的最後一項纔會停止。 – realuser
我不知道爲什麼有些人表現出對負面投票和評論而不是回答的興趣。 – Randroid