this.navDrawerToggle = new ActionBarDrawerToggle(this,this.getApplicationContext(), this.navDrawerLayout,R.drawable.ic_drawer, R.string.app_name, R.string.app_name ){
@Override
public void onDrawerOpened(View drawerView) {
getActionBar().setTitle(navDrawerTitle);
invalidateOptionsMenu();
}
@Override
public void onDrawerClosed(View drawerView) {
getActionBar().setTitle(appTitle);
invalidateOptionsMenu();
}
};
I'm new to android i i'm making an app in which i was using Navigation Drawer i was following a tutorial but then in the end i stuck on ActionBarDrawerToggle()
which i think is now deprecated and that tutorial was made earlier please can anyone tell me how to use deprecated ActionBarDrawerToggle
or any other way to use android.support.v4.app.ActionBarDrawerToggle;
??
please explain in detail as i'm new to android and programming.
i also imported
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarActivity;
but still not working.