Java Code Examples for android.support.v7.app.ActionBarDrawerToggle.setHomeAsUpIndicator()

The following are Jave code examples for showing how to use setHomeAsUpIndicator() of the android.support.v7.app.ActionBarDrawerToggle class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Hotspot-master-devp   File: HotspotMainActivity.java   Source Code and License Vote up 6 votes
@Override
public void setViews() {
    setSupportActionBar(mToolBar);
    getSupportActionBar().setDisplayShowTitleEnabled(false);
    mActionBarDrawerToggle = new ActionBarDrawerToggle(
            this, mDrawerLayout, mToolBar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    mDrawerLayout.addDrawerListener(mActionBarDrawerToggle);
    mActionBarDrawerToggle.setHomeAsUpIndicator(R.drawable.ic_home_menu);
    mActionBarDrawerToggle.setDrawerIndicatorEnabled(false);
    mActionBarDrawerToggle.syncState();
    size.setText(ImageCacheUtils.getCacheSize());
    version_code.setText("V"+mSession.getVersionName());
    //getVersionCode()
    mFragmentList = new ArrayList<>();
    mTitleList = new ArrayList<>();

    initIndicator();
}