bar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
ArrayAdapter < String > adapter = new ArrayAdapter < String > (this,
android.R.layout.simple_spinner_dropdown_item,
R.array.arrayItem);
bar.setListNavigationCallbacks(adapter, new OnNavigationListener() {
@Override
public boolean onNavigationItemSelected(int itemPosition, long itemId) {
// TODO Auto-generated method stub
return false;
}
});
我一直在尝试这个,但这里没有任何下拉菜单或微调器。谁能告诉我这里发生了什么问题?