Esempio n. 1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_peso);

    //        this.invalidateOptionsMenu();
    mToolbar = (Toolbar) findViewById(R.id.toolbar);
    title = (TextView) mToolbar.findViewById(R.id.title);
    title.setTypeface(UtilsApp.opensansNormal());
    drawerFragment =
        (FragmentDrawer)
            getSupportFragmentManager().findFragmentById(R.id.fragment_navigation_drawer);
    drawerFragment.setUp(
        R.id.fragment_navigation_drawer, (DrawerLayout) findViewById(R.id.drawer_layout), mToolbar);
    drawerFragment.setDrawerListener(this);

    displayView(1);
  }
Esempio n. 2
0
  @Override
  protected void onDestroy() {
    super.onDestroy();

    UtilsApp.putInt("displayTips", 0);
  }