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?
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?
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)
ActionBar.OnMenuVisibilityListener
You can use this method for your work. For more details you can check here: https://developer.android.com/reference/android/app/ActionBar.OnMenuVisibilityListener