How can I make a badge like how we ofter see it on GitHub libraries. Like this: . I can use a web view but it is not efficient as it will take time to load and it will also cache it.
Advertisement
Answer
For this, I have made a library Badge Generator. It is easy to implement. The steps are given below. I will be editing the answer as I post updates.
Sample
Tutorial
Note: This is not updated to the features supported in the latest version.
Features
- You can set a custom label(title)
- You can set a custom message
- You can set a custom image using
base64
or the two links provided in theREADME.md
. - You can set a custom logo color
- You can set a custom label background color
- You can set a custom message background color
- And a lot lot more.