Comments (6)
@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)
from android-ago.
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.
from android-ago.
@IgordeOliveira Sorry for the delayed response. I will look into it during the coming week.
from android-ago.
@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
AppCompatTextView
or something instead of just justTextView
on older versions)
from android-ago.
@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.
from android-ago.
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.
from android-ago.
Related Issues (20)
- Time ago calculation HOT 13
- Strings in Portuguese
- in 0 mins HOT 14
- Now LATEST_VERSION is what ? HOT 2
- Lack of consistent capitalization (English) HOT 3
- A String Completed added prior to time HOT 3
- Once the `UpdateTimeRunnable` is detached and the `weakRefRttv` cleared, it is never attached again HOT 4
- Add automated tests HOT 4
- Change lang of "hours ago" ... HOT 1
- Locale HOT 1
- Time is one hour behind on old Galaxy Tab 3 using Android 4.4.2 HOT 3
- this work fine in recyclerviews? HOT 1
- Removing the "ago" word HOT 6
- Save timeago when close the app HOT 1
- Add a `getReferenceTime()` method
- Modify time update interval HOT 1
- Text format has extra charcters in it HOT 2
- Enhancement - short suffix HOT 1
- In new update, issue with Just Now
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-ago.