我必須使用2個重疊的ScrollViews進行佈局。一篇是帶有「看評論」按鈕的文章。另一個視圖是透明的幷包含註釋,並且在單擊「查看註釋」按鈕時顯示在文章頂部。問題是,當顯示註釋並且沒有填充屏幕時,將屏幕觸摸到屏幕外(例如,下面的圖像上的「Retour」按鈕下方。這是一個iphone屏幕截圖,android上的設計是不同的)滾動文章。問題與重疊ScrollViews
此外,「案中LES住客評論」按鈕可以點擊,即使在它上面的另一個佈局。
爲什麼下面的視圖沒有禁用(按鈕,滾動...),當它有另一個頂部?如何做呢?
有人可以幫忙嗎?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:background="#FFFFFF">
<RelativeLayout android:id="@+id/header"
android:layout_width="fill_parent" android:layout_height="49dp"
android:background="#e7e7e8">
<!-- header -->
</RelativeLayout>
<ScrollView android:id="@+id/article_scroll"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:layout_below="@id/header">
<LinearLayout android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical">
<!-- article -->
</LinearLayout>
</ScrollView>
<LinearLayout android:layout_width="fill_parent"
android:layout_below="@id/header" android:layout_height="fill_parent"
android:orientation="vertical" android:background="#50000000" android:visibility="gone">
<ScrollView android:id="@+id/comment_scroll"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<!-- comments -->
</ScrollView>
</LinearLayout>
</RelativeLayout>
好吧,對不起,我刪除了我的評論;-) –