android日历多选 日历插件


实现逻辑可选择多选日期,不同类型日期背景颜色可设置不同。可展示默认选中。默认选中可设置不同日期颜色不同


测试机型 nubia(努比亚)-NX529J

安卓版本 5.1.1


安装使用 

Android Studio

1.导入包,修改名称

android日历多选 日历插件_第1张图片

android日历多选 日历插件_第2张图片

2.修改build.gradle文件内容

android日历多选 日历插件_第3张图片


apply plugin: 'com.android.library'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.0"
    defaultConfig {
//        applicationId "com.bignerdranch.android.calendarmultiselect"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

3.在弹出的对话框中选中你导入的包,

android日历多选 日历插件_第4张图片

android日历多选 日历插件_第5张图片

4.隐藏依赖项目AndroidManifest.xml文件的

不然会有两个图标


地址 点击打开链接

你可能感兴趣的:(android)