Closed GoogleCodeExporter closed 9 years ago
Original comment by jumperc...@gmail.com
on 20 Jan 2010 at 6:17
Original comment by jumperc...@gmail.com
on 3 Feb 2010 at 4:50
The title text is 'xx-xx',
how to know what event was booked if them show on daylong,
maybe you want show 'xx-xx something', you can just set them in content
Original comment by jimmyshi...@gmail.com
on 4 Feb 2010 at 7:10
So you suppose, if the user created event with title: "My Event", she should
also
start content as "My Event something ....". I do not find it as a good solution.
I have filled this bug just to warn you about a small inconsistency in the
SimpleEventRender. I do not care much about the solution of this issue - I can
easily
change SimpleEventRender for anything else.
Original comment by xmed...@gmail.com
on 4 Feb 2010 at 8:14
I have solved this issue. I have made the method:
/**
* Makes a title from event - takes an event title or a event content, if the event
title is empty.
*
* @param event
* @param maxchars
* Maximum chars returned. If less or equal to zero, then everything is
returned.
* @return
*/
private static String getTitle(CalendarEvent event, int maxchars) {
String title = event.getTitle();
if (Strings.isEmpty(title)) { // title empty, take content as title
title = event.getContent();
if (Strings.isEmpty(title)) {
return title; // everything's empty
}
}
// trim it
title = title.trim();
if (maxchars > 0 && title.length() > maxchars) {
title = title.substring(0, maxchars);
}
return title;
}
And I have placed "getTitle(self, xx)" instead of "self.getContent()" in
SimpleEventRenderer in the methods drawAllDay, drawAllDayByMonth,
drawDayByMonth.
Original comment by xmed...@gmail.com
on 23 Feb 2010 at 3:50
Fixed in 1.0.0 experimental branch
Original comment by xmed...@gmail.com
on 25 Feb 2010 at 1:13
Original comment by jimmyshi...@gmail.com
on 19 Jul 2011 at 9:07
Original issue reported on code.google.com by
xmed...@gmail.com
on 19 Jan 2010 at 3:55