Exemple #1
0
 @Override
 public boolean onCreateOptionsMenu(android.view.Menu menu) {
   super.onCreateOptionsMenu(menu);
   getMenuInflater().inflate(R.menu.activity_main, menu);
   initMenuItem(menu.findItem(R.id.menu_checkbox_glare), glareEnabled);
   initMenuItem(menu.findItem(R.id.menu_checkbox_shadow), shadowEnabled);
   return true;
 }
Exemple #2
0
 public void switchFragment(String mCategry) {
   drawer.closeDrawer();
   getFragmentManager()
       .beginTransaction()
       .replace(
           com.sspai.navigationdrawer.R.id.frame_container,
           (android.app.Fragment) HomeFragment.newInstance(mCategry))
       .commit();
 }
Exemple #3
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
     setTranslucentStatus(true);
     SystemBarTintManager tintManager = new SystemBarTintManager(this);
     tintManager.setStatusBarTintEnabled(true);
     tintManager.setStatusBarTintResource(R.color.action_bar_color);
   }
   mitchDevice(brand);
 }
Exemple #4
0
 @Override
 protected void onStop() {
   super.onStop();
 }
Exemple #5
0
 @Override
 protected void onPause() {
   bus.unregister(this);
   super.onPause();
 }
Exemple #6
0
 @Override
 protected void onResume() {
   super.onResume();
   bus.register(this);
 }