Android 日历控件WeekCalendar

Demo图

Android 日历控件WeekCalendar_第1张图片

开源代码:https://github.com/nomanr/WeekCalendar

基于Android-studio开发的用Demo:http://download.csdn.net/download/qq_30552993/9495978

其中有几处需要注意的:app.build.gradle文件

  1. minSdkVersion 14
  2. compile 'com.android.support:appcompat-v7:23.1.1'
  3. 引用这个WeekCalendar控件的Activity必须继承的是import android.support.v7.app.*;
    例如extends ActionBarActivity

 
  
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "22.0.1"

    defaultConfig {
        applicationId "com.example.calendar"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
//    compile 'com.android.support:appcompat-v7:24.0.0-alpha2'
//    compile project(':libs:weekcalendar')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'noman.weekcalendar:weekcalendar:1.0.6'
}


你可能感兴趣的:(Android)