-1

I have drawerActivity and i use this to construct NavigationDrawerTogggle

mDrawerToggle = new 
        ActionBarDrawerToggle((Activity)this, mDrawerLayout,
        R.string.drawer_open,
        R.string.drawer_close) {};

            mDrawerToggle.setDrawerIndicatorEnabled(true);

            getActionBar().setDisplayHomeAsUpEnabled(true);
            getActionBar().setHomeButtonEnabled(true);
            getActionBar().setDisplayShowHomeEnabled(true);  

in my phone android 4.3 drawer toggle looks like lolipop drawer (hamburger -> arrow animation), in android 4.2.2 it shows only this " < " .

4

1 回答 1

0

你需要打电话mDrawerToggle.syncState()。您可以在初始化后立即调用它 mDrawerToggle

于 2014-12-04T15:05:10.787 回答