应用程序中显示日历的安卓库,可自定义样式
gradle:
compile 'com.github.alamkanak:android-week-view:1.2.6'
<com.alamkanak.weekview.WeekView android:id="@+id/weekView" android:layout_width="match_parent" android:layout_height="match_parent" app:eventTextColor="@android:color/white" app:textSize="12sp" app:hourHeight="60dp" app:headerColumnPadding="8dp" app:headerColumnTextColor="#8f000000" app:headerRowPadding="12dp" app:columnGap="8dp" app:noOfVisibleDays="3" app:headerRowBackgroundColor="#ffefefef" app:dayBackgroundColor="#05000000" app:todayBackgroundColor="#1848adff" app:headerColumnBackground="#ffffffff"/> java: mWeekView = (WeekView) findViewById(R.id.weekView); mWeekView.setOnEventClickListener(mEventClickListener); week view. mWeekView.setMonthChangeListener(mMonthChangeListener); mWeekView.setEventLongPressListener(mEventLongPressListener); GitHub地址:https://github.com/alamkanak/Android-Week-View
mWeekView = (WeekView) findViewById(R.id.weekView); mWeekView.setOnEventClickListener(mEventClickListener); week view. mWeekView.setMonthChangeListener(mMonthChangeListener); mWeekView.setEventLongPressListener(mEventLongPressListener); GitHub地址:https://github.com/alamkanak/Android-Week-View
尊敬的会员,只需要简单地分享到微信、QQ空间、微薄等,就可以轻松地获得获得下载积分免费下载、发布任务啦,详细见推广规则。