Code example for Activity

Methods: getResources

        mDrawerLayout = drawerLayout;
        mDrawerImageResource = drawerImageRes;
        mOpenDrawerContentDescRes = openDrawerContentDescRes;
        mCloseDrawerContentDescRes = closeDrawerContentDescRes;
        mThemeImage = IMPL.getThemeUpIndicator(activity);
        mDrawerImage = activity.getResources().getDrawable(drawerImageRes);
        mSlider = new SlideDrawable(mDrawerImage);
        mSlider.setOffsetBy(1.f / 3);
     * Synchronize the state of the drawer indicator/affordance with the linked DrawerLayout. 
     * <p/> 
     * <p>This should be called from your <code>Activity</code>'s 
     * {@link onPostCreate} method to synchronize after 
     * the DrawerLayout's instance state has been restored, and any other time when the state 
     * may have diverged in such a way that the ActionBarDrawerToggle was not notified. 
     * (For example, if you stop forwarding appropriate drawer events for a period of time.)</p>