Android Example [B4X] AS Scheduler - DayView


The following thread lists all the features that the DayView of the AS_Scheduler has.

DayView.png

Appointments Overview
Feature overview.png

Appointment OverviewGap
The OverviewGap is always 8dip and it's per default enabled
B4X:
ASScheduler_DayView1.AppointmentProperties.OverviewGap = True
(46) mage.png

Blackout Day
A blackout day is a day where the user cannot add appointments. The day is blocked for interactions.
B4X:
    Dim BlackoutStartDate As Long = WeekStartDate+DateTime.TicksPerDay*5
    ASSchedulerUtils.API.CreateBlackout(ASSchedulerUtils.CreateASScheduler_Blackout(0,BlackoutStartDate,BlackoutStartDate+DateTime.TicksPerDay))'2 days
(46) mage.png

Working Hours
Defines a visual area that should represent working times. Appointments can still be created outside the area as usual.
B4X:
ASScheduler_DayView1.WorkingProperties.Active = True
ASScheduler_DayView1.WorkingProperties.StartHour = 8
ASScheduler_DayView1.WorkingProperties.EndHour = 17
ASScheduler_DayView1.WorkingProperties.NonWorkingDays = Array As Int(ASSchedulerUtils.WeekDay_Saturday,ASSchedulerUtils.WeekDay_Sunday)
(46) mage.png

ShowStartEndTime and ShowDuration
Better overview of the time and duration of an appointment.
B4X:
    ASScheduler_DayView1.AppointmentProperties.ShowDuration = True
    ASScheduler_DayView1.AppointmentProperties.ShowStartEndTime = True
    ASScheduler_DayView1.RefreshScheduler

(46) mage.png

Week Number and Month Name
In the designer you can set whether you want to have the week number and or the month name displayed.
(46) mage.png

Theming
You can switch seamlessly from dark design to light design.
Have a look at the following thread:
 
Last edited:
Top