Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add Textview below Actionbar title [duplicate]

reference image with text below title

how can we add a Textview below default actionbar title?

I have googled it and tried with custom Actionbar View, but it will change other Actionbar functionality. Any reference?

like image 549
manoj Avatar asked Mar 13 '23 16:03

manoj


1 Answers

You can use setSubtitle .

Set the action bar's subtitle. This will only be displayed if DISPLAY_SHOW_TITLE is set. Set to null to disable the subtitle entirely.

ActionBar ab = getActionBar(); //getSupportActionBar()
 ab.setTitle("App Title");
 ab.setSubtitle("App sub-title");  

You can check Setting Action Bar title and subtitle

like image 89
IntelliJ Amiya Avatar answered Mar 24 '23 06:03

IntelliJ Amiya