Search code examples
androidactionbarsherlock

Programmatically Hide/Show sherlockActionBar dropdown list


I have an Activity with a ViewPager inside.

The ViewPager has 3 pages.

I want to show my dropdown list only in 1 of the 3 pages.

Is there a correct way to do that? Maybe a Show/Hide property or must I change the setNavigationMode of the sherlockActionBar?

Thanks and sorry for my poor English


Solution

  • You can easily hide the DropDown list by using this line of code : getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);

    Then you can implement an OnPageChangeListener to be notify when the user scrolls.