Set Subtitle on Android Toolbar ActionBar

Subtitle is set below the title on the toolbar or actionbar. you can use this java code to place a subtitle on your toolbar

tested on android lollipop in Appcompat theme

 Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar1);
toolbar.setSubtitle("About");

in the “about” field, you can insert the text you want.


, ,

Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *