Android:使用自定义操作栏后,其他活动中没有显示操作栏

时间:2016-05-09 03:36:46

标签: android android-actionbar

我有一个关于自定义操作栏的问题 我有两个活动,两个活动都是AppCompatActivity
在第一个活动中,我创建了一个自定义操作栏

Toolbar toolbar = (Toolbar) findViewById(R.id.custom_actionbar);
setSupportActionBar(toolbar);

当我开始第二个活动时,它不会显示操作栏 我应该为第二个活动重复上面的代码来显示操作栏吗?或者有没有办法显示动作栏?

0 个答案:

没有答案
相关问题