how to set dayview item text size on adroid?

2 posts, 0 answers
  1. steve
    steve avatar
    3 posts
    Member since:
    Nov 2017

    Posted 13 Nov Link to this post

    Hey guys,

    I'm having an issue setting the dayview (day) schedule item text size on android (on xamarin.forms)?

    im currently using the 'calendar_NativeControlLoaded' event to set the style.

    i've tried all styles but nothing seems to work as follows:

         var cald = (sender as RadCalendar);

                            cald.AppointmentsStyle = new CalendarAppointmentsStyle
                            {
                                DisplayMode = AppointmentDisplayMode.Shape,
                                Padding = new Thickness(1, 2, 1, 2),
                                MaxCount = 5,
                                Spacing = 2,
                                ShapesHorizontalLocation = HorizontalLocation.Center,
                                ShapesVerticalLocation = VerticalLocation.Bottom,
                                ShapesOrientation = Orientation.Horizontal,
                                ShapeSize = new Size(5,5),
                                ShapeType = CalendarAppointmentShapeType.Ellipse,
                                FontSize = 8d,
                            };
                           

                            cald.DayViewStyle = new DayViewStyle
                            {
                                TimelineLabelsFontSize=10,
                                AppointmentFontSize = 10,
                                AppointmentDetailsFontSize = 10,
                                
                            };

                            var calStyle = new CalendarCellStyle { FontSize = 10 };
                            cald.TitleCellStyle = calStyle;
                            cald.DayCellStyle = calStyle;                    
                            cald.TodayCellStyle = calStyle;

                            cald.SelectedCellStyle = new CalendarCellStyle { FontSize=10};

     

    I'm using the 1103 version of telerik and the latest xamarin forms versions.

    regards
    Steve

     

     

  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    559 posts

    Posted 16 Nov Link to this post

    Hi, Steve,

    I have tested setting the DayViewStyle's AppointmentFontSize and it is correctly applied to the appointments when in DayView mode. Can you provide an example that shows your exact scenario as the styling mechanism seems to work correctly in the sample I am testing with?

    Regards,
    Stefan Nenchev
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top