android-overdraw layout ermöglicht touch durch linearlayout
In der folgenden Benutzeroberfläche habe ich diese unten drabable über den gesamten Bildschirm. Das LinearLayout ist transparent und ermöglicht, dass Steuerelemente darunter angeklickt oder berührt werden können. Grundsätzlich kann ich eine Liste unter diesem LinearLayout sowie Klicksteuerelemente scrollen. Wie deaktiviere ich das?
Siehe beigefügtes Beispiel.
Vielen Dank
<code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rlExtNavbar" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="fill_vertical" android:layout_gravity="fill_vertical" android:background="@color/transparent" xmlns:tools="http://schemas.android.com/tools" tools:ignore="Overdraw"> <RelativeLayout android:id="@+id/expandedNavbarLayout" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" > </RelativeLayout> <LinearLayout android:id="@+id/transparentLayout" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/expandedNavbarLayout" android:focusableInTouchMode="false" android:focusable="false" android:background="@color/fulltransparent"> </LinearLayout> </RelativeLayout> </code>