我無法正確滾動ScrollView。它總是切斷底部的內容,就好像它是一個正常的LinearLayout。ScrollView根本不滾動
我的代碼
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true" >
<LinearLayout android:id="@+id/scroll_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:isScrollContainer="true"
android:orientation="vertical" >
當然,我已經嘗試添加/刪除「fillViewport」和「isScrollContainer」屬性,它並沒有在改變任何東西。
在此先感謝。
能否請您粘貼完整的XML,也許是你的LinearLayout相關的東西。 – PaNaVTEC 2013-02-11 11:14:07
嘗試將'android:layout_height =「match_parent」'更改爲'android:layout_height =「0dp」'並在'ScrollView'上添加'android:layout_weight =「1」'。 – 2013-02-11 11:14:53
剛剛嘗試過,沒有運氣。 – thomaus 2013-02-11 12:56:02