コード例 #1
0
 @Override
 public void onResume() {
   super.onResume();
   mDrawerToggle.setDrawerIndicatorEnabled(true);
 }
コード例 #2
0
 // METHOD SETS ICON ON ACTIONBAR TO "BACK ICON" TO PREVENT CHILD FRAGMENTS FROM
 // OVERLAYING PARENT FRAGMENTS
 private void setActionBarArrowDependingOnFragmentsBackStack() {
   int backStackEntryCount = getSupportFragmentManager().getBackStackEntryCount();
   boolean shouldEnableDrawerIndicator = backStackEntryCount == 0;
   mDrawerToggle.setDrawerIndicatorEnabled(shouldEnableDrawerIndicator);
 }
コード例 #3
0
ファイル: ActivityMain.java プロジェクト: JCulver/NotePad-2
 void setHomeAsDrawer(final boolean value) {
   mDrawerToggle.setDrawerIndicatorEnabled(value);
 }
コード例 #4
0
 /** Toggles between using up button or navigation drawer icon by setting the DrawerListener */
 void setDrawerIndicatorEnabled(final boolean showUpButton) {
   mShowHomeAsUp = showUpButton;
   mDrawerToggle.setDrawerIndicatorEnabled(!showUpButton);
 }