adding a title on app bar code example
Example: getsupportactionbar activity
ActionBar mActionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();
ActionBar mActionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();