@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; }
public void switchFragment(String mCategry) { drawer.closeDrawer(); getFragmentManager() .beginTransaction() .replace( com.sspai.navigationdrawer.R.id.frame_container, (android.app.Fragment) HomeFragment.newInstance(mCategry)) .commit(); }
@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); }
@Override protected void onStop() { super.onStop(); }
@Override protected void onPause() { bus.unregister(this); super.onPause(); }
@Override protected void onResume() { super.onResume(); bus.register(this); }