내 날씬한 기본 응용 프로그램에서 nativescript radCalendar 구성 요소를 사용하고 있습니다. 요일 셀에 표시된 이벤트의 글꼴 크기를 업데이트 할 수 없습니다. 날짜의 글꼴 크기를 업데이트 할 수 있지만 이벤트 텍스트가 효과가 없습니다. 테스트 기기는 android10이 설치된 pixel1입니다.
월별보기를 만드는 내 기능
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());
}
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다