I have a RecyclerView what fills my main activity. It works fine, however, sometimes a view (let's call this View2) appear at the bottom of the activity, so the RecyclerView remains visible, but the appearing View2 overlaps the bottom of the list. Unfortunately this doesn't work well for me. When I touch on the appeared view the list item under View2 receives the touch event. I want to hide View2 when I touch it. I think a Snackbar behaves really similar to the one I would like to achieve.
Asked
Active
Viewed 69 times
1 Answers
1
Is the appearing view a PopupWindow, Toast or Dialog? Seems View2 is not clickable and touchable.

Sina Rezaei
- 529
- 3
- 24
-
No, View2 is a RelativeLayout. – Ukubu Jan 01 '16 at 18:12
-
Then add setClickable(true) to View2. Layouts are not clickable by default. in xml: android:clickable="true" – Sina Rezaei Jan 01 '16 at 23:28
-
@Ukubu, it would be good if you choose this as right answer so your questions would be considered solved :) You too :) – Sina Rezaei Jan 02 '16 at 22:14