question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toolbar subtitle is not set when using calligraphy

See original GitHub issue

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)

Issue Analytics

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

github_iconTop GitHub Comments

9reactions
Jawnnypoocommented, Oct 26, 2016

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");
                }
            });
0reactions
chrisjenxcommented, Mar 21, 2017

We only support the v7 toolbar not anything else.

On Tue, Mar 21, 2017, 06:13 John notifications@github.com wrote:

Is there a reason for setSupportActionBar(toolbar)? That may be causing the issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chrisjenx/Calligraphy/issues/280#issuecomment-287899933, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHRsUiOZqRZyY0LrXxvK8Wqmd4rpMeGks5rnuwOgaJpZM4IO9yg .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android toolbar center title and custom font - Stack Overflow
At the moment, i'm using the good old ActionBar, and I was setting the title to empty value, and using setCustomView to put...
Read more >
Toolbar - Android Developers
Toolbar supports a more focused feature set than ActionBar. From start to end, ... Whether or not the auto handwriting initiation is enabled...
Read more >
Android Appcompat Toolbar Title Not Shown Correctly
Toolbar subtitle is not set when using calligraphy. Navigation Fragments and App / Action Bars. Effective Android as shown in Gmail example on...
Read more >
Set title, subtitle and logo of Toolbar - YouTube
how to set title subtitle and logo of Toolbar.http://android-er.blogspot.com/2016/01/ set -title- subtitle -and-logo-of- toolbar.html.
Read more >
Video: Using Styles in Word - Microsoft Support
Use Quick Styles · You might format a document while you type, or change fonts, font size, or colors for things like headings....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found