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.

Is it possible to add an attribute to disable Calligraphy on a TextView?

See original GitHub issue

I’m required to have custom fonts app-wide while using https://github.com/JoanZapata/android-iconify.

However, android-iconify does not work with Calligraphy.

Is there a workaround? Can I do something like this?

<IconTextView
    android:text="{fa-heart}"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:disable_calligraphy="true"
    />

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:1
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
kevinvanmierlocommented, Jul 1, 2016

I’d still wish to see a disable option. I’m currently using a default font on the default textAppearance. But my font doesn’t look good with numbers, so I’d like to disable it for a specific price TextView. Is this still on the roadmap?

2reactions
chrisjenxcommented, Jul 13, 2015

OK, seen as more than one person wants this I’ll add it as a feature request.

On Mon, 13 Jul 2015 13:38 kashban notifications@github.com wrote:

Why not both options? An attribute and an ignoreClass in the builder? Either can be helpful.

— Reply to this email directly or view it on GitHub https://github.com/chrisjenx/Calligraphy/issues/152#issuecomment-120913772 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disabling of EditText in Android - Stack Overflow
I believe the correct would be to set android:editable="false" . And if you wonder why my link point to the attributes of TextView...
Read more >
TextView - Android Developers
By setting this attribute to true the view is allowed to take focus. By setting it to "false" the view will not take...
Read more >
Content labels - Android Accessibility Help
For EditTexts or editable TextViews , use an android:hint attribute to indicate the purpose of the text field. An android:contentDescription should not be...
Read more >
Working with the TextView | CodePath Android Cliffnotes
The android:textStyle attribute can be used to put emphasis on the text. The possible values are: normal , bold , italic . You...
Read more >
Android TextInputLayout Example | DigitalOcean
Floating Hints are enabled by default in a TextInputLayout. To disable it we need to add the following attribute inside the tag :...
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