I want to set toolbar on my activity which extends FragmentActivity. I know that for use setSuppoertActionBar(toolbar) method we e
You can also create your own toolbar:
First set up the main theme to extend Theme.AppCompat.Light.NoActionBar
Remember to apply the theme:
@Override
protected void onCreate(Bundle savedInstanceState) {
this.setTheme(R.style.style_1);
// ...
}
then in your Activity's xml you can set your own custom toolbar:
where @layout/my_toolbar may look like this: