Wednesday, 15 April 2020

blitz

blitz is a very lightweight Android library that allows you to set a self-updating string with relative time (e.g. 5 minutes ago) in TextView in just one line of code.

DOESN'T require using custom TextView.

It will not overheadly update your TextView: e.g. if your relative time is 5 minutes ago then blitz will send update only after one minute, not every second. The same with others time units: hours updates once an hour, etc.

Don't be scared to use it in your ViewHolders, 'cause blitz won't let anything leak and will take care of the system resources.



from The Android Arsenal

No comments:

Post a Comment