Android 日历控件WeekCalendar
来源:互联网 发布:手机控制wifi软件 编辑:程序博客网 时间:2024/06/01 07:30
Demo图
开源代码:https://github.com/nomanr/WeekCalendar
基于Android-studio开发的用Demo:http://download.csdn.net/download/qq_30552993/9495978
其中有几处需要注意的:app.build.gradle文件
- minSdkVersion 14
- compile 'com.android.support:appcompat-v7:23.1.1'
- 引用这个WeekCalendar控件的Activity必须继承的是import android.support.v7.app.*;
例如extends ActionBarActivity
<noman.weekcalendar.WeekCalendar android:id="@+id/weekCalendar" android:layout_width="match_parent" android:layout_height="65dp" android:background="@color/colorPrimary" app:dayNameLength="threeLetters" app:numOfPages="150" />
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'}
0 0
- Android 日历控件WeekCalendar
- android 自定义日历控件
- Android自定义日历控件
- Android 日历控件:TimesSquare
- Android 自定义日历控件
- Android 日历控件 TimesSquare
- android 中的日历控件
- android自定义日历控件
- android开发日历控件
- Android日历控件
- Android 自定义日历控件
- android日历控件
- Android 自定义日历控件
- Android-自定义日历控件
- Android自定义日历控件
- Android日历控件
- Android日历控件
- Android日历控件
- 内容提供器Demo
- Xutils3使用心得
- 利用Retrofit执行Post、Get请求,通俗易懂
- 竞赛于 2016-4-19 T1,公司控制(usaco 原题)
- iOS基于B站的IJKPlayer框架的流媒体探究
- Android 日历控件WeekCalendar
- Matlab之fopen、fprintf函数
- C++新特性学习笔记
- 配置Log4j(很详细)
- Android 驱动开发系列三
- SP共享数据(程序B读取程序A的SP数据)
- C#中两个Form之间传值的一种方法
- jquery每日一学
- 用例图