I\'m trying to figure out the right way to use a custom font for the toolbar title, and center it in the toolbar (client requirement).
At the moment, i\'m using the
To use a custom title in your Toolbar you can add a custom title like :
Java Code:
Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); if (getSupportActionBar() == null) return; getSupportActionBar().setTitle("Title"); getSupportActionBar().setDisplayHomeAsUpEnabled(true);