OSDN Git Service

Enable event title in the calendar week view
authorMichael Chan <mchan@android.com>
Mon, 17 Aug 2009 21:27:07 +0000 (14:27 -0700)
committerMichael Chan <mchan@android.com>
Mon, 17 Aug 2009 21:27:07 +0000 (14:27 -0700)
If the event box is big enough, the event title will be shown just like in the Day view.
That include:
1) events longer than 1 hour unless in portrait mode and
   the event overlaps with another event in the same period,
2) events longer than 1 hour unless in landscape mode and
   the event overlaps with more than 2 events in the same time period,
3) all day events unless there are too many of them,

src/com/android/calendar/WeekView.java

index b0b3244..ebff44c 100644 (file)
@@ -26,7 +26,7 @@ public class WeekView extends CalendarView {
     }
 
     private void init() {
-        mDrawTextInEventRect = false;
+        mDrawTextInEventRect = true;
         mNumDays = 7;
         mEventGeometry.setCellMargin(CELL_MARGIN);
     }