Can't hide navigation tabs from SupportActionbar
I have a fragment which is employing the SwipeViews as shown here:
http://developer.android.com/training/implementing-navigation/lateral.html
I managed to follow the tutorial and get exactly what I wanted. However, I
want to be able to hide the navigation when a certain button is clicked. I
use this code:
ab.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
Log.i("MyTag", "Mode" + ab.getNavigationMode());
The log shows the mode is set to 0, which is what I want, however the
navigation is not removed. I need to be able to hide it. Is this the
correct method?
No comments:
Post a Comment