How To Expand Navigation List In Action Bar?
In android you could set a navigation list in action bar by passing spinner adapter and OnNavigationListener. the issue is that the navigation list dont fill most of the action bar
Solution 1:
You want to implement the getDropDownView
method too. This lets you supply a different view for the dropdown list with the metrics and formatting you want.
Consider inflating the framework layouts android.R.layout.simple_spinner_item
and android.R.layout.simple_spinner_dropdown_item
for these situations. Use findViewById(android.R.id.text1)
to get the TextView
you should fill out in each one.
Solution 2:
Maybe you can use ActionBar tab navigation and add icons to the tabs rather than the list navigation since the gmail's navigation looks more like tabs navigation.
Post a Comment for "How To Expand Navigation List In Action Bar?"