檢查出這個代碼按鈕覆蓋滾動型
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fadeScrollbars="true"
android:scrollbarStyle="insideInset" >
<TextView
android:id="@+id/txt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoLink="all"
android:paddingLeft="3dp"
android:paddingRight="3dp"
android:textIsSelectable="true" />
</ScrollView>
<Button
android:id="@+id/nextbtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:onClick="nextButton"
android:text="@string/next" />
<Button
android:id="@+id/backbtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:onClick="prevButton"
android:text="@string/back" />
我得到的結果是,儘管滾動視圖和文本顯示,在底部的按鈕,左邊和左下角都在頂部文字/滾動視圖。我曾嘗試使用linearlayout,但沒有運氣。請幫助。
給你的滾動視圖一個ID,並嘗試添加到您的按鈕:'android:layout_below =「@ + id/scrollViewId」' – 2013-02-20 20:33:21
嘗試賈斯汀V的回答@mister_dani – Shoshi 2013-02-20 20:48:03