private void initToolbar() { view.setToolbarTitle(R.string.view_note); switch (operateMode) { case CREATE_NOTE_MODE: view.setToolbarTitle(R.string.new_note); break; case EDIT_NOTE_MODE: view.setToolbarTitle(R.string.edit_note); break; case VIEW_NOTE_MODE: view.setToolbarTitle(R.string.view_note); break; default: break; } }
@Override public void onFocusChange(android.view.View v, boolean hasFocus) { if (hasFocus) { view.setToolbarTitle(R.string.edit_note); } }