使用CalendarView如下,问题是每次进入此页面至少要等待2-5秒。一直查不到原因。最后重新建了一次界面,才发现问题所在:
只有把
<CalendarView
android:id="@+id/calendarView1"
android:layout_weight="1"
android:layout_width="match_parent"
<span style="color:#ff6666;">android:layout_height="wrap_content"</span> />
的layout_height 改为match_parent。就不会出现进入页面加载过慢的问题了。