So I have a view pager implemented like this
In the main view I have button at the top right of the screen thats similar to a navigation bar. When I click it or swipe it I want it to disappear and when it refocuses on the main screen I want it to appear again. I've been trying it for hours and have had no luck.
I know I need to use setVisibility(View.GONE)/VISIBLE
I just keep getting null pointers or the image just wont change.
Ive implemented OnPageChangeListener()
and tried using otto events to change the button state as well, but the event is never being received.
In short the main goal is to be able to interact with elements on any view not visibly shown in the ViewPager