android action bar activity code example
Example: getsupportactionbar activity
ActionBar mActionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();
ActionBar mActionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();