-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the possibility to add an icon to an event #266
base: develop
Are you sure you want to change the base?
Conversation
@vermotr Can you please remove all the formatting updates? |
Furthermore, I'm wondering if we should allow the developer to choose the position of the icon (from a predefined set). Btw, can you also update the readme with instructions on how to set an icon? That way future devs can find out (and I can find out how to test your code). |
@caske33 I have updated my PR ;-) |
👍 but there happened is also a lot of code formatting that would break other PR |
When there is an event that stars, lets say, 11PM and ends 1AM on the next day the icon won't draw. I know these kind of events don't occur that often but I'd like to have this also. I've seen how event titles are drawn twice but couldn't replicate it for the icon. Thanks for the branch. |
Hi, someone know how to use this PR in android app? |
Hi @vermotr I want to set the icon at the start (left-top instead of right-bottom). How do I achieve that? this is my drawEventIcon()
|
Hi,
I create a PR to add the possibility to display an icon at the bottom of an event.
To associate an icon with an event you can use this method :
setIconId()
and to set its color:setIconColor()
. By default, the color of icon is the same than that of header.You can define the size of icons in your layout with the
eventIconSize
attribute.vermotr