【发布时间】:2013-07-08 03:10:16
【问题描述】:
我在我的一个项目中使用标准CalendarView。当我在对话框中显示它时,它似乎可以正常工作,但是当我在应用程序的另一个活动中显示它时,它似乎随机漏掉了几个星期。在日历中上下滚动会使它们再次出现,但其他则消失。通常缺少的一周是包含我使用setDate() 设置的日期的那一周,因此甚至没有显示选定的日期。
有没有其他人看到CalendarView 的这种行为?我正在使用 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" />
【问题讨论】:
-
note 暂时,如果其他人也有这个问题,请改用日期微调器。
标签: android date picker calendarview