private void setTabNavigation(ActionBar bar){
String[] actions = new String[] {
"Bookmark",
"Subscribe",
"Share"
};
bar.removeAllTabs();
bar.setDisplayHomeAsUpEnabled(true);
bar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("#a5a5a5")));
bar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(
getBaseContext(),
android.R.layout.simple_spinner_dropdown_item, actions);
}
如何将微调器添加到我title bar
的操作栏?我在标题栏旁边看到了一个小箭头,但是我将如何向它添加微调器和事件侦听器。