Android 如何设置日历日单元格中事件文本的字体大小

Android 如何设置日历日单元格中事件文本的字体大小,android,nativescript,svelte,svelte-component,Android,Nativescript,Svelte,Svelte Component,我正在我的svelte本机应用程序中使用nativescript组件。我无法更新日单元格中显示的事件的字体大小。我可以更新日期的字体大小,但事件文本无效。测试设备为pixel1和android10 构建月视图的我的函数 function buildMonthView() { const monthViewStyle = new CalendarMonthViewStyle(); const dayCellStyle = new DayCellStyle();

我正在我的svelte本机应用程序中使用nativescript组件。我无法更新日单元格中显示的事件的字体大小。我可以更新日期的字体大小,但事件文本无效。测试设备为pixel1和android10

构建月视图的我的函数

function buildMonthView() {
        const monthViewStyle = new CalendarMonthViewStyle();

        const dayCellStyle = new DayCellStyle();
        dayCellStyle.showEventsText = true;
        dayCellStyle.eventTextSize = 30;
        dayCellStyle.eventFontStyle = CalendarFontStyle.Bold;
        dayCellStyle.cellTextSize = 14;
        monthViewStyle.dayCellStyle = dayCellStyle;

        return monthViewStyle;
    }
编辑:
操场链接:

尝试在日历加载事件中以本机方式设置文本大小

  // Android only
  if (event.object.nativeView.getEventAdapter()) {
    event.object.nativeView.getEventAdapter().getRenderer().setEventTextSize(20 * utilsModule.layout.getDisplayDensity());
  }

您如何在日历上分配monthViewStyle?你能分享一个可以重现问题的游乐场示例吗?问题中添加了游乐场链接你确定你分享了正确的游乐场示例吗,因为你说它很苗条,但操场是用Angular建造的。这个操场是由其他人用Angular建造的,他们面临同样的问题,但在不同的论坛上被问到,并且仍然开放。这个组件在svelte native中也有相同的行为。我不知道为什么它不工作,因为它的封闭源代码很难调试。试试这个-