📅  最后修改于: 2022-03-11 14:53:33.954000             🧑  作者: Mango
((ActionBarActivity)getActivity()).setSupportActionBar(mToolbar);
if you are using AppCompatActivity
((AppCompatActivity)getActivity()).setSupportActionBar(mToolbar);