I have Two children on a FrameLayout, a view pager and a backround view
I add the background view as a second child , so it's supposed to be on top of my view pager.
The problem is I can still scroll my view pager despite of having another view on top of it.
the structure is :
<FrameLayout>
<DrawerLayout>contains view pager and content</DrawerLayout>
<LinearLayout></LinearLayout> -> this is where I add my view as a black background
</FrameLayout>
How do I disable the input and listener for the first child of the framelayout or is there an easier way of doing this?
Tried setting the elevation, and bringViewToFront(), but those aren't working.
Thanks