Reactgular
Reactgular

Reputation: 54821

How to create double line text in ActionBar like new GMail app

Google release the new gmail app for Android, and I noticed they display both "Inbox" and the user's email in the same spot.

Is this a standard ActionBar feature that I can duplicate in my app?

How can I create a double line text with different fonts in the ActionBar, or can I create a custom Widget and use it in the ActionBar?

enter image description here

Upvotes: 3

Views: 1107

Answers (1)

Y2i
Y2i

Reputation: 3878

The default ActionBar has a title and sub-title: http://developer.android.com/reference/android/app/ActionBar.html#setSubtitle(int)

Please note that DISPLAY_SHOW_TITLE needs to be set.

Upvotes: 5

Related Questions