Nativescript 增加RadCalendar中DayNameCell的高度

Nativescript 增加RadCalendar中DayNameCell的高度,nativescript,angular2-nativescript,nativescript-angular,nativescript-telerik-ui,Nativescript,Angular2 Nativescript,Nativescript Angular,Nativescript Telerik Ui,我正在尝试为我的nativescript应用程序创建每周日历视图。问题在于android的样式设计。周-日名称的顶部和底部没有足够的间距 我曾尝试以编程方式增加高度,但没有效果 const weekViewStyle = new CalendarWeekViewStyle(); const dayNameCellStyle = new CellStyle(); dayNameCellStyle.cellAlignment = CalendarCel

我正在尝试为我的nativescript应用程序创建每周日历视图。问题在于android的样式设计。周-日名称的顶部和底部没有足够的间距

我曾尝试以编程方式增加高度,但没有效果

        const weekViewStyle = new CalendarWeekViewStyle();
        const dayNameCellStyle = new CellStyle();
        dayNameCellStyle.cellAlignment = CalendarCellAlignment.HorizontalCenter;
        dayNameCellStyle.cellTextSize = 14;
        dayNameCellStyle.effectiveHeight = 30;
        dayNameCellStyle.effectiveMarginBottom = 20;
        weekViewStyle.dayNameCellStyle = dayNameCellStyle;

我不认为插件中公开了更改高度的选项,但是您可以在loaded事件中使用本机方法调用来完成

onLoaded(event) {
    const calendar = event.object;
    if (calendar.android) {
        calendar.android.setDayNamesHeight(layout.toDevicePixels(40));
    } else {
        calendar.ios.presenter.style.dayNameCellHeight = 40;
    }
}

好的,谢谢你。您能给我指一下有关访问本机元素设置(如“setDayNamesHeight”或“presenter.style.dayNameCellHeight”)的文档吗。