Skip to content
Jesse Hoobergs edited this page Feb 9, 2018 · 7 revisions

You can customize the look of the WeekView in xml. Use the following attributes in xml. All these attributes also have getters and setters to enable you to change the style dynamically.

  • allDayEventHeight: The height of all day events.
  • autoLimitTime: If set to true, the range of visible hours is automatically set to the smallest range in which all events take place. If there are for example only events between 10u and 18u, only the hours 10 until 18 are visible.
  • columnGap: The gap between days
  • dayBackgroundColor: The backgroundcolor of a day
  • dayNameLength
  • dropListenerEnabled: Whether items can be dropped on the weekview
  • eventCornerRadius
  • eventMarginVertical
  • eventPadding
  • eventTextColor
  • eventTextSize
  • firstDayOfWeek
  • futureBackgroundColor
  • futureWeekendBackgroundColor
  • headerColumnBackground
  • headerColumnPadding
  • headerColumnTextColor
  • headerRowBackgroundColor
  • headerRowPadding
  • horizontalFlingEnabled
  • hourHeight
  • hourSeparatorColor
  • hourSeparatorHeight
  • maxHourHeight
  • maxTime
  • minHourHeight
  • minTime
  • minOverlappingMinutes: The minimal amount of overlap of 2 events needed to be seen as overlapping events
  • newEventColor
  • newEventId
  • newEventIconResource
  • newEventLengthInMinutes
  • newEventTimeResolutionInMinutes
  • noOfVisibleDays
  • nowLineColor
  • nowLineThickness
  • overlappingEventGap
  • pastBackgroundColor
  • pastWeekendBackgroundColor
  • scrollDuration
  • showDistinctPastFutureColor
  • showDistinctWeekendColor
  • showFirstDayOfWeekFirst
  • showNowLine
  • textSize
  • timeColumnResolution
  • todayBackgroundColor
  • todayHeaderTextColor
  • verticalFlingEnabled
  • xScrollingSpeed
  • zoomFocusPoint The focused point (percentage of the view height) where the week view is zoomed around. This point will not move while zooming. You can declare it as a fraction app:focusPoint="30%" and if is not declared the top of the view is used.
  • zoomFocusPointEnabled If you set this to false the zoomFocusPoint won't take effect any more while zooming. The zoom will always be focused at the center of your gesture.
Clone this wiki locally