android - Receiving click/swipe events on a view behind a transparent item of a listview -
i have layout similar foursquare (image), view
(in case, map) behind listview
, visible because first element transparent.
i need view
behind listview
take touch , swipe events. there way make only first invisible item of listview
ignore these events , allow events propagate view
behind it, have rest of listview
items take events usual?
i'm hoping won't have abandon listview
, use scrollview
instead, because i've implemented lot of listview
specific features.
scrollview on work normaly unless click button:
<framelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <scrollview android:id="@+id/bottom" android:layout_width="match_parent" android:layout_height="match_parent"> <textview android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/text" android:text="asdfasdfa put more text testing sdfasdfasdfasdfasdfff afdasdfasdfasdfasdfasdf asdfasdfa"/> </scrollview> <linearlayout android:id="@+id/top" android:layout_height="match_parent" android:layout_width="match_parent"> <button android:id="@+id/butt" android:layout_height="100dp" android:layout_width="200dp" android:text="test"/> </linearlayout> </framelayout>
both of layers/frames have height , width set match_parent
(full screen in case). , can basicaly put want both of layers need it.
Comments
Post a Comment