Skip to content Skip to sidebar Skip to footer

Listener For When A Fragment Becomes Visible

I'm going crazy trying to get an optionsMenu to have different options for different views. I could have it working if onResume() was called on my fragments, but it isn't. I have o

Solution 1:

As noted by JonasSeputis and the OP himself, the solution was to change the transaction.add() to transaction.replace()

The detailed solution is here.

Post a Comment for "Listener For When A Fragment Becomes Visible"