chrisjenx / Calligraphy

Custom fonts in Android the easy way...
Apache License 2.0
8.59k stars 1.09k forks source link

Not working inside module #418

Closed martinbaciga closed 5 years ago

martinbaciga commented 7 years ago

Hi,

I'm trying to use the library inside a module of my project. I don't know how can i achieve this, i tried adding all configuration lines, but with no success. Is this posible?

Thanks!

Note: in my project i have this already working.

chrisjenx commented 5 years ago

It would only work in a lib project if you were serving activities they consumed. but there is no way to define it globally in a lib module

afaucogney commented 5 years ago

@chrisjenx why do you mean exactly by serving activities ?

chrisjenx commented 5 years ago

@chrisjenx why do you mean exactly by serving activities ?

As you override baseContext in the Activity, you could only provide a calligraphy config for those activities, otherwise there is no shared config right now.

Basically use ViewPump, it supports multiple configs - and this is depreciated for ViewPump or direct androidx support.