-1

私は android.support.v7.app.ActionBarDrawerToggleActionBarToggle のパッケージとして使用しており、コンストラクターは次のとおりです

mDrawerToggle = new ActionBarDrawerToggle(
                this,
                mDrawerLayout,
                R.string.drawer_open,
                R.string.drawer_close)

トグルのハンバーガーアイコンを設定するにはどうすればよいですか?

4

1 に答える 1

0
mDrawerToggle = new ActionBarDrawerToggle(
            getActivity(),                    /* host Activity */
            mDrawerLayout,                    /* DrawerLayout object */
            R.drawable.yourIcon,             /* nav drawer image to replace 'Up' caret */
            R.string.navigation_drawer_open,  /* "open drawer" description for accessibility */
            R.string.navigation_drawer_close  /* "close drawer" description for accessibility */
    )
于 2015-07-20T12:46:01.337 に答える