– AppCompat/ActionBarCompat in v7 support library.
if extends with “Fragment” not with “ActionBarActivity” then
After Fragment.onActivityCreated() you’ll have a valid activity accessible through getActivity().
You’ll need to cast it to an ActionBarActivity then make the call to getSupportActionBar().
example:
ActionBar actionbar=((ActionBarActivity)getActivity()).getSupportActionBar();
actionbar..setTitle(“title”);
……… hide,subtitle and all work with extends Fragment.