0

I searched a lot but i can't able to get proper answer.generally we use it as

toolbar=(Toolbar)findViewById(R.id.toolbar_to_updates);
        setSupportActionBar(toolbar);
        android.support.v7.app.ActionBar bar=getSupportActionBar();
        bar.setDisplayHomeAsUpEnabled(true);
        bar.setHomeButtonEnabled(true);
        bar.setTitle("Updates");
The Black Horse
  • 2,328
  • 1
  • 14
  • 21

1 Answers1

1

You found Toolbar but trying to make changes in ActionBar. They are different. Check here Android toolbar center title and custom font

Community
  • 1
  • 1
RexSplode
  • 1,475
  • 1
  • 16
  • 24