ActionBarDrawerToggle is not setting Drawer Indicator

前端 未结 4 1476
走了就别回头了
走了就别回头了 2021-02-04 06:09

I am trying to add the navigation drawer in my app.. Everything is working fine But now I still got the arrow icon although I replaced it with the ic_drawer from Android? Here\'

4条回答
  •  独厮守ぢ
    2021-02-04 06:51

    try this code

       @Override
        protected void onPostCreate(Bundle savedInstanceState) {
            super.onPostCreate(savedInstanceState);
            // Sync the toggle state after onRestoreInstanceState has occurred.
            actbardrawertoggle.syncState();
        }
    

提交回复
热议问题