我必须使用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>
好吧,对不起,我删除了我的评论;-) –