Android DrawerLayout 不显示左边的图标, 显示那个小箭头问题

来源:互联网 发布:知乎 国债收益率 债市 编辑:程序博客网 时间:2024/05/02 00:23
up vote17down voteaccepted

You need to syncState() call of your ActionBarDrawerToggle object from onPostCreate()

@Overrideprotected void onPostCreate(Bundle savedInstanceState) {    super.onPostCreate(savedInstanceState);    // Sync the toggle state after onRestoreInstanceState has occurred.    mDrawerToggle.syncState();}
0 0