There are any ActionBar visibility change event listeners

Viewed 93

I'm designing a backdrop design. When I hide an action bar then the front layout needs to change its position, so I need to detect ActionBar visibility. Are there any layout changes or events that can used to be do that?

2 Answers

Implement ActionBar.OnMenuVisibilityListener interface in your listener class.

Write responses in @Override public void onMenuVisibilityChanged(boolean isVisible) {... }

Register listener in ActionBar with ActionBar.addOnMenuVisibilityListener(obj)

Related