Navigation Drawer ActionBar button not working

后端 未结 4 993
盖世英雄少女心
盖世英雄少女心 2020-12-07 20:48

I am working on an android project and I\'m trying to integrate the new Navigation Drawer using the example from http://developer.android.com/training/implementing-navigatio

4条回答
  •  伪装坚强ぢ
    2020-12-07 21:20

    For those who are still having trouble, you may be missing this method (which OP has but I had deleted):

    @Override
    protected void onPostCreate(Bundle savedInstanceState) {
        super.onPostCreate(savedInstanceState);
        mDrawerToggle.syncState();
    }
    

提交回复
热议问题