Lines Matching defs:activity
140 * @param activity The Activity hosting the drawer. Should have an ActionBar.
147 public ActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout,
150 this(activity, null, drawerLayout, null, openDrawerContentDescRes,
168 * setting the Toolbar as the ActionBar of your activity.
170 * @param activity The Activity hosting the drawer.
178 public ActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout,
181 this(activity, toolbar, drawerLayout, null, openDrawerContentDescRes,
190 <T extends Drawable & DrawerToggle> ActionBarDrawerToggle(Activity activity, Toolbar toolbar,
206 } else if (activity instanceof DelegateProvider) { // Allow the Activity to provide an impl
207 mActivityImpl = ((DelegateProvider) activity).getDrawerToggleDelegate();
208 } else if (activity instanceof TmpDelegateProvider) {// tmp interface for transition
209 mActivityImpl = ((TmpDelegateProvider) activity).getV7DrawerToggleDelegate();
211 mActivityImpl = new JellybeanMr2Delegate(activity);
213 mActivityImpl = new HoneycombDelegate(activity);
215 mActivityImpl = new DummyDelegate(activity);
222 mSlider = new DrawerArrowDrawableToggle(activity,
468 public DrawerArrowDrawableToggle(Activity activity, Context themedContext) {
470 mActivity = activity;
511 private HoneycombDelegate(Activity activity) {
512 mActivity = activity;
554 private JellybeanMr2Delegate(Activity activity) {
555 mActivity = activity;
640 DummyDelegate(Activity activity) {
641 mActivity = activity;