android-ago
android-ago copied to clipboard
add font family option
@IgordeOliveira This is simply a TextView - the fontFamily attribute should work our of the box. If you have tried it and it does not work, could you please submit some details (sample code, screenshots etc)
I choose a font in the attributes, as in the image, in the preview works but when I compile the app just the 'time ago' text does not change the font.

@IgordeOliveira Sorry for the delayed response. I will look into it during the coming week.
@IgordeOliveira I had a quick experiment with the sample app and added scada font. Here's how it looks.

As you can see, the RTTV has the scada font applied. It is a bit difficult to spot in this example, so here's one with a more easy to spot font

It looks like the font is being applied correctly on RTTV. Could you give more pointers like
- How are you downloading the custom font? Are you using a FontProvider like Google Play Services?
- What is the Android version on which you see the problem? (I'm thinking perhaps I might need to extend from
AppCompatTextViewor something instead of just justTextViewon older versions)
@IgordeOliveira Have you had time to look into this further? If not, I would like to close this issue for now and you could reopen if you still face problems.
I got the same problem . it will work on API 27 but it doesn't work in API 24 (Android 7.0) , when i use this in API 27( Android 8.1.0 ) I changed fontFamily .Font will be changed accordingly.