我有大型muptipage webview(用戶協議)下的設置按鈕的問題。現在我可以在滾動webview的同時隨時看到按鈕。如何在Android上的非常大的WebView下設置按鈕?
當我將android:layout_below="@+id/rl_relativeLayout
添加到佈局中的按鈕時,我只能看到WebView的內容。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/rl_relativeLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="10dip" >
<WebView
android:id="@+id/web_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/rl_relativeLayout2"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center_horizontal"
android:layout_margin="10dip" >
<Button
android:id="@+id/agreement_acceptance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="3dp"
android:text="OK" />
</RelativeLayout>
它的作品,非常感謝你!對不起,我的聲譽很低,我不能投票答覆你的答案。 –