Calligraphy: Toolbar subtitle is not set when using calligraphy

Hi, I’m using Calligraphy the default way (initing in Application and overriding attachBaseContext)

Calling toolbar.setSubtitle doesn’t work. If I commented the attachBaseContext override, it works normally.

Any suggestion for fixes or, unfortunately, hacks, is welcome.

LATE EDIT:

Calling toolbar.setSubtitle doesn’t work.

By this I meant that the subtitle isn’t displayed, and the title is vertically centered. (it’s like subtitle view behavior is View.GONE)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 2
  • Comments: 31 (11 by maintainers)

Commits related to this issue

Most upvoted comments

If anyone else comes across this issue, you can just do it with a call to post() on the Toolbar, no need for a delay.

toolbar.post(new Runnable() {
                @Override
                public void run() {
                    toolbar.setSubtitle("something");
                }
            });