0

When I tried to use ActionBar and specify the navigationMode eclipse says it is deprecated without suggesting the recommende one to use instead.

what should i use instead of this.actionBar.setNavigationMode(mode)?

rmaik
  • 1,482
  • 2
  • 12
  • 39
  • 1
    You can still call that method, you just need to be aware that it may be unsupported in the future. The best solution is to revise your app's design/navigation according to the newest guidelines. – Karakuri Jan 27 '15 at 15:39
  • http://stackoverflow.com/q/24473213 good reading. – petey Jan 27 '15 at 15:44

1 Answers1

0

There is no alternate method to use from the now deprecated setNavigationMode since the Toolbar is basically a stripped down version of the actionbar where you put in the views you want inside the toolbar.

for example if you wanted to replicate the Dropdown navigation mode you would put a spinner inside your toolbar

tyczj
  • 66,691
  • 50
  • 172
  • 271