Android Calenderview周日需要太阳而不是太阳
我在项目中使用日历视图。当我运行程序时,星期日、星期一、星期二等的周数为S、M、T等。Android Calenderview周日需要太阳而不是太阳,android,android-studio,calendarview,Android,Android Studio,Calendarview,我在项目中使用日历视图。当我运行程序时,星期日、星期一、星期二等的周数为S、M、T等。 我需要太阳,周一,周二。。是否可以代替S、M等单个字符? 请帮忙 这是我的XML <CalendarView android:id="@+id/calendarView" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/w
我需要太阳,周一,周二。。是否可以代替S、M等单个字符?
请帮忙 这是我的XML
<CalendarView
android:id="@+id/calendarView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:firstDayOfWeek="2"
android:weekSeparatorLineColor="@color/gray"/>
请尝试以下操作:
这个库看起来真的很不错,并且具有更现代的UI(材质设计):
您只需使用gradle导入即可:
implementation 'com.prolificinteractive:material-calendarview:1.4.0'
并将其添加到布局中:
<com.prolificinteractive.materialcalendarview.MaterialCalendarView
android:id="@+id/calendarView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:firstDayOfWeek="2"
android:weekSeparatorLineColor="@color/gray"
/>
请提供您尝试过的xml设计和代码。使用此库进行自定义。