How to get Toolbar from fragment?

后端 未结 10 1829
梦毁少年i
梦毁少年i 2020-11-28 01:45

I have ActionBarActivity with NavigationDrawer and use support_v7 Toolbar as ActionBar. In one of my fragments toolbar has custom view

10条回答
  •  温柔的废话
    2020-11-28 02:34

    Maybe you have to try getActivity().getSupportActionBar().setTitle() if you are using support_v7.

提交回复
热议问题