how to implement android app bar in just one activity code example
Example: getsupportactionbar activity
ActionBar mActionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();
ActionBar mActionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();