I'm using the standard CalendarView
in one of my projects. When I display it in a dialog, it seems to work normally, but when I display it in another activity in the app, it seems to leave out a few weeks at random. Scrolling up and down through the calendar causes them to appear again, but others to disappear. Often the missing week is the one including the date that I set it to using setDate()
so no selected date is even shown.
Has anyone else seen this behavior with CalendarView
? I'm using SDK v17
.
<CalendarView
android:id="@+id/cv_planner"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:padding="@dimen/item_list_padding"
android:selectedDateVerticalBar="@color/teal"
android:selectedWeekBackgroundColor="@color/teal"
android:showWeekNumber="true" />