0
我的ActionBar
標題或活動瓷磚不顯示與Spinner
下拉式添加。任何想法是什麼錯?我已經做了很多的研究,但我沒有看到問題ActionBar does not show title with spinner
public class MainActivity extends ListActivity implements ActionBar.OnNavigationListener{
private static final int EDITOR_ACT_REQUEST = 504;
private static final int MENU_DELETE_ID = 1002;
private ActionBar actionBar;
private ArrayList<SpinnerNavItem> navSpinner;
private TitleNavigationAdapter adapter;
String curdate;
private int currentNoteId;
private ArgueDataS datasource;
List<ArgueItem> argueList;
public static ArrayAdapter<String> add;
private ArgueItem note;
TextView day;
String datastring;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
actionBar = getActionBar();
actionBar.setDisplayShowTitleEnabled(true);
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
// Spinner title navigation data
navSpinner = new ArrayList<SpinnerNavItem>();
navSpinner.add(new SpinnerNavItem("Argue Time", R.drawable.alarm));
navSpinner.add(new SpinnerNavItem("Top 10", R.drawable.topten));
adapter = new TitleNavigationAdapter(getApplicationContext(), navSpinner);
// assigning the spinner navigation
actionBar.setListNavigationCallbacks(adapter, this);
但我想這個標題上顯示錯誤隱藏它 – LimpLimp
作爲據我所知,你不能同時顯示標題和微調。微調應該代替標題。 –