diff --git a/README.md b/README.md index 4ae2b7f..6ce8bde 100644 --- a/README.md +++ b/README.md @@ -1,1467 +1,55 @@ -# v2.0.2文档 -> 本文中的功能介绍、控件用法均针对`v2.0.2`以其以上,你可以在 [ChangeLog](https://github.com/zfman/TimetableView/wiki/版本说明) 查看本控件的开发进展,作者联系方式`1193600556@qq.com` +### TimetableView +> [TimetableView](https://github.com/zfman/TimetableView)是一款开源的Android课程表控件,你可以在 [ChangeLog](https://github.com/zfman/TimetableView/wiki/版本说明) 查看本控件的开发进展,作者联系方式`1193600556@qq.com` -[TimetableView](https://github.com/zfman/TimetableView)是一款开源的、完善、高效的Android课程表控件。高效在哪?周次切换高效、样式文件极少(只需1个,`v1.x`需要36个只能实现12种样式) +[TimetableView](https://github.com/zfman/TimetableView)是一款开源的、完善、高效的Android课程表控件。 - 支持xml设置属性 - 丰富的课程工具包 - 支持多种自定义 - 课程颜色管理 -- 调用简洁、性能高效 - ScrollView可替换 -- 可设置背景以及透明度 -- 数据源可添加额外信息 +- 调用简洁、性能高效 `new` +- 可设置背景以及透明度 `new` +- 数据源可添加额外信息 `new` +- 空白格子可点击,课程项可长按 `new` +- 月份宽度可设置 `new` +- 周末可设置隐藏 `new` - + -- [准备数据源](#准备数据源) -- [基础功能](#基础功能) - - [添加依赖](#添加依赖) - - [添加控件](#添加控件) - - [配置属性](#配置属性) - - [数据源设置](#数据源设置) - - [删除课程](#删除课程) - - [添加课程](#添加课程) - - [非本周课程显示与隐藏](#非本周课程显示与隐藏) - - [最大节次设置](#最大节次设置) - - [节次时间显示与隐藏](#节次时间显示与隐藏) - - [WeekView显示与隐藏](#WeekView显示与隐藏) - - [小结](#小结) -- [周次选择栏](#周次选择栏) - - [自定义属性](#自定义属性) - - [默认的周次选择栏](#默认的周次选择栏) - - [自定义周次选择栏](#自定义周次选择栏) -- [自定义属性](#自定义属性) - - [属性列表](#属性列表) - - [属性设置](#属性设置) - - [显示视图](#显示视图) -- [日期栏](#日期栏) - - [日期栏显示与隐藏](#日期栏显示与隐藏) - - [自定义日期栏](#自定义日期栏) - - [恢复默认日期栏](#恢复默认日期栏) -- [侧边栏](#侧边栏) - - [准备](#准备) - - [节次时间显示与隐藏](#节次时间显示与隐藏) - - [修改侧边栏背景](#修改侧边栏背景) - - [修改节次文本颜色](#修改节次文本颜色) - - [修改时间文本颜色](#修改时间文本颜色) - - [自定义侧边栏](#自定义侧边栏) - - [侧边栏效果重置](#侧边栏效果重置) -- [课程项样式](#课程项样式) - - [非本周课程显示与隐藏](#非本周课程显示与隐藏) - - [设置间距以及弧度](#设置间距以及弧度) - - [设置单个角弧度](#设置单个角弧度) - - [修改显示的文本](#修改显示的文本) - - [设置非本周课的背景](#设置非本周课的背景) - - [课程重叠的样式](#课程重叠的样式) -- [颜色池](#颜色池) - - [获取颜色池](#获取颜色池) - - [指定颜色](#指定颜色) - - [重置颜色池](#重置颜色池) - - [追加颜色](#追加颜色) - - [设置非本周课程颜色](#设置非本周课程颜色) -- [替换滚动布局](#替换滚动布局) - - [自定义View](#自定义View) - - [布局文件](#布局文件) - - [设置监听](#设置监听) -- [工具类](#工具类) - - [列表与适配器](#列表与适配器) - - [显示所有课程](#显示所有课程) - - [第一周有课的课程](#第一周有课的课程) - - [周一有课的课程](#周一有课的课程) -- [额外的信息](#额外的信息) - - [存入额外数据](#存入额外数据) - - [读出额外数据](#读出额外数据) -- [旗标布局](#旗标布局) - - [事件监听](#事件监听) - - [背景修改与重置](#背景修改与重置) - - [开启与关闭](#开启与关闭) - - [显示与隐藏](#显示与隐藏) +## 最新文档 +> 你将了解到该控件用法的方方面面,点击`快速开始`按钮体验吧 -## 准备数据源 -> 在开始使用控件之前,你需要准备好数据源,数据可以从网上获取或者使用本地数据,为了方便演示,使用本地的JSON字符串,然后再将其解析为需要的格式 - -参见 [MySubject](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/model/MySubject)、[SubjectExtras](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/model/SubjectExtras)、[SubjectRepertory](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/model/SubjectRepertory) - -## 基础功能 -> 本节你将掌握如何使用本控件搭建自己的课表界面。这里使用的版本为`2.0.2` -> 虽说本节名字为`基础功能`,但是这是一个综合的例子,如果有些地方看不明白或者属性记不住,那么这是正常的,看到下文对应的章节时会清晰很多,如果仍然不懂请联系我~ -> 完整代码参见 [BaseFuncActivity](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/BaseFuncActivity) - -### 添加依赖 -Gradle -```xml -compile 'com.zhuangfei:TimetableView:2.0.2' -``` -Maven -```xml - - com.zhuangfei - TimetableView - 2.0.2 - pom - -``` -### 添加控件 - -该控件包含的基础组件有日期栏、侧边栏、课表视图,在布局文件中加入如下代码后会包含这三个基础组件,注意要添加背景色,没有背景图片可以添加白色背景。 -```xml - - - - -``` -### 数据源设置 -数据源的设置方式有两种,以下分别来介绍: - -方法1:使用指定的格式`List`,`Schedule`是控件提供的课程实体类,你可以将自己的数据封装为指定格式,然后进行如下配置即可 - -```java - mTimetableView.data(scheduleList) - .curWeek(1) - .showView(); -``` -方法2:方法1在很多场景下都满足不了需求,往往需要定义自己的课程实体类,你可以跟随以下几个步骤来使用它 - -- 创建自定义的实体类并实现`ScheduleEnable`接口 - -```java - -public class MySubject implements ScheduleEnable { - //省略属性、setter、getter、构造函数 - - @Override - public Schedule getSchedule() { - Schedule schedule=new Schedule(); - schedule.setDay(getDay()); - schedule.setName(getName()); - schedule.setRoom(getRoom()); - schedule.setStart(getStart()); - schedule.setStep(getStep()); - schedule.setTeacher(getTeacher()); - schedule.setWeekList(getWeekList()); - schedule.setColorRandom(2); - return schedule; - } -} -``` -- 使用`source()`设置 -```java -//模拟获取课程数据:自定义格式 -List mySubjects = SubjectRepertory.loadDefaultSubjects(); - -//设置数据源并显示 -mTimetableView.source(mySubjects) - .curWeek(1) - .showView(); -``` - -### 配置属性 -我直接把这部分整个代码放出来了,分以下三步: - - 1. 获取控件 - 2. 设置`WeekView`属性 - 3. 设置`TimetableView`属性 - -使用如下方式获取到控件 -```java - TimetableView mTimetableView; - WeekView mWeekView; -``` - -```java -/** - * 初始化课程控件 - */ - private void initTimetableView() { - //获取控件 - mWeekView = findViewById(R.id.id_weekview); - mTimetableView = findViewById(R.id.id_timetableView); - - //设置周次选择属性 - mWeekView.source(mySubjects) - .curWeek(1) - .callback(new IWeekView.OnWeekItemClickedListener() { - @Override - public void onWeekClicked(int week) { - int cur = mTimetableView.curWeek(); - //更新切换后的日期,从当前周cur->切换的周week - mTimetableView.onDateBuildListener() - .onUpdateDate(cur, week); - //课表切换周次 - mTimetableView.changeWeekOnly(week); - } - }) - .callback(new IWeekView.OnWeekLeftClickedListener() { - @Override - public void onWeekLeftClicked() { - onWeekLeftLayoutClicked(); - } - }) - .isShow(false)//设置隐藏,默认显示 - .showView(); - - mTimetableView.source(mySubjects) - .curWeek(1) - .curTerm("大三下学期") - .maxSlideItem(10) - //透明度 - //日期栏0.1f、侧边栏0.1f,周次选择栏0.6f - //透明度范围为0->1,0为全透明,1为不透明 - .alpha(0.3f, 0.1f, 0.6f) - .callback(new ISchedule.OnItemClickListener() { - @Override - public void onItemClick(View v, List scheduleList) { - display(scheduleList); - } - }) - .callback(new ISchedule.OnItemLongClickListener() { - @Override - public void onLongClick(View v, int day, int start) { - Toast.makeText(BaseFuncActivity.this, - "长按:周" + day + ",第" + start + "节", - Toast.LENGTH_SHORT).show(); - } - }) - .callback(new ISchedule.OnWeekChangedListener() { - @Override - public void onWeekChanged(int curWeek) { - titleTextView.setText("第" + curWeek + "周"); - } - }) - //旗标布局点击监听 - .callback(new ISchedule.OnFlaglayoutClickListener() { - @Override - public void onFlaglayoutClick(int day, int start) { - mTimetableView.hideFlaglayout(); - Toast.makeText(BaseFuncActivity.this, - "点击了旗标:周" + (day + 1) + ",第" + start + "节", - Toast.LENGTH_SHORT).show(); - } - }) - .showView(); - } -``` - -### 删除课程 -```java -/** - * 删除课程 - * 内部使用集合维护课程数据,操作集合的方法来操作它即可 - * 最后更新一下视图(全局更新) - */ - protected void deleteSubject() { - int size = mTimetableView.dataSource().size(); - int pos = (int) (Math.random() * size); - if (size > 0) { - mTimetableView.dataSource().remove(pos); - mTimetableView.updateView(); - } - } -``` - -### 添加课程 -```java - /** - * 添加课程 - * 内部使用集合维护课程数据,操作集合的方法来操作它即可 - * 最后更新一下视图(全局更新) - */ - protected void addSubject() { - List dataSource=mTimetableView.dataSource(); - int size = dataSource.size(); - if (size > 0) { - Schedule schedule = dataSource.get(0); - dataSource.add(schedule); - mTimetableView.updateView(); - } - } -``` - -### 非本周课程显示与隐藏 -```java -/** - * 隐藏非本周课程 - * 修改了内容的显示,所以必须更新全部(性能不高) - * 建议:在初始化时设置该属性 - * - * updateView()被调用后,会重新构建课程,课程会回到当前周 - */ - protected void hideNonThisWeek() { - mTimetableView.isShowNotCurWeek(false).updateView(); - } - - /** - * 显示非本周课程 - * 修改了内容的显示,所以必须更新全部(性能不高) - * 建议:在初始化时设置该属性 - */ - protected void showNonThisWeek() { - mTimetableView.isShowNotCurWeek(true).updateView(); - } -``` - -### 最大节次设置 -```java -/** - * 设置侧边栏最大节次,只影响侧边栏的绘制,对课程内容无影响 - * @param num - */ - protected void setMaxItem(int num) { - mTimetableView.maxSlideItem(num).updateSlideView(); - } -``` - -### 节次时间显示与隐藏 -```java -/** - * 显示时间 - * 设置侧边栏构建监听,TimeSlideAdapter是控件实现的可显示时间的侧边栏 - */ - protected void showTime() { - String[] times = new String[]{ - "8:00", "9:00", "10:10", "11:00", - "15:00", "16:00", "17:00", "18:00", - "19:30", "20:30","21:30","22:30" - }; - OnSlideBuildAdapter listener= (OnSlideBuildAdapter) mTimetableView.onSlideBuildListener(); - listener.setTimes(times) - .setTimeTextColor(Color.BLACK); - mTimetableView.updateSlideView(); - } - - /** - * 隐藏时间 - * 将侧边栏监听置Null后,会默认使用默认的构建方法,即不显示时间 - * 只修改了侧边栏的属性,所以只更新侧边栏即可(性能高),没有必要更新全部(性能低) - */ - protected void hideTime() { - mTimetableView.callback((ISchedule.OnSlideBuildListener) null); - mTimetableView.updateSlideView(); - } -``` - -### WeekView显示与隐藏 -```java -/** - * 显示WeekView - */ - protected void showWeekView(){ - mWeekView.isShow(true); - } - - /** - * 隐藏WeekView - */ - protected void hideWeekView(){ - mWeekView.isShow(false); - } -``` - -### 小结 -一个综合的例子你已经看完了,是不是感觉印象还不是那么深刻,不要担心,下文针对每个特性进行深入讲解 - -## 周次选择栏 -> 周次选择栏`WeekView`是控件实现的一个默认的周次选择控件,你可以使用它快速的拥有周次选择功能,`TimetableView`是没有周次选择功能的,所以需要两者配合使用。本节你将掌握使用默认的周次选择栏 -> 完整代码参见 [BaseFuncActivity](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/BaseFuncActivity) - -### 自定义属性 -在根节点添加一个名为app的命名空间 -```xml -xmlns:app="http://schemas.android.com/apk/res-auto" -``` - -以下属性你可以在xml中配置 -```xml - - - - - - - - - - - -``` - -### 默认的周次选择栏 -**1.添加控件** - -在布局文件中放一个`TimetableView`,然后在`TimetableView`的上边放一个`WeekView` -```xml - - - - -``` - -**2.初始化** - -我直接把这部分整个代码放出来了,分以下三步: - - 1. 获取控件 - 2. 设置`WeekView`属性 - 3. 设置`TimetableView`属性 - -使用如下方式获取到控件 -```java -TimetableView mTimetableView; -WeekView weekView; -``` - -```java -/** - * 初始化课程控件 - */ - private void initTimetableView() { - //获取控件 - mWeekView = findViewById(R.id.id_weekview); - mTimetableView = findViewById(R.id.id_timetableView); - - //设置周次选择属性 - mWeekView.source(mySubjects) - .curWeek(1) - .callback(new IWeekView.OnWeekItemClickedListener() { - @Override - public void onWeekClicked(int week) { - int cur = mTimetableView.curWeek(); - //更新切换后的日期,从当前周cur->切换的周week - mTimetableView.onDateBuildListener() - .onUpdateDate(cur, week); - //课表切换周次 - mTimetableView.changeWeekOnly(week); - } - }) - .callback(new IWeekView.OnWeekLeftClickedListener() { - @Override - public void onWeekLeftClicked() { - onWeekLeftLayoutClicked(); - } - }) - .isShow(false)//设置隐藏,默认显示 - .showView(); - - mTimetableView.source(mySubjects) - .curWeek(1) - .curTerm("大三下学期") - .maxSlideItem(10)//最大侧边栏节次 - //透明度 - //日期栏0.1f、侧边栏0.1f,周次选择栏0.6f - //透明度范围为0->1,0为全透明,1为不透明 - .alpha(0.1f, 0.1f, 0.6f) - .callback(new ISchedule.OnItemClickListener() { - @Override - public void onItemClick(View v, List scheduleList) { - display(scheduleList); - } - }) - .callback(new ISchedule.OnWeekChangedListener() { - @Override - public void onWeekChanged(int curWeek) { - titleTextView.setText("第" + curWeek + "周"); - } - }) - .showView(); - } -``` - -**3.更新高亮日期** - -由于在`onCreate`中设置了WeekView,所以默认的在WeekView初始化时会计算当前日期,如果程序在后台时间太长(超一天),那么进入页面时会发现日期不正确,所以可以在Activity的onStart生命周期方法中再次计算日期,设置高亮 -```java -/** - * 更新一下,防止因程序在后台时间过长(超过一天)而导致的日期或高亮不准确问题。 - */ - @Override - protected void onStart() { - super.onStart(); - mTimetableView.onDateBuildListener() - .onHighLight(); - } -``` -### 自定义周次选择栏 -你只需要任意的定制即可,`WeekViewEnable`接口提供了自定义WeekView的规范,你可以用,也可以不用,不强制;因为它与`TimetableView`是没有任何关联的,有问题可以参考`WeekView`的实现 - -## 自定义属性 -> 本控件不仅支持在代码中对属性进行设置,部分属性和监听还支持在布局文件xml中配置,一起来看看吧~ -> 完整代码参见 [AttrActivity](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/AttrActivity) - -### 属性列表 -以下罗列的属性或监听可以在xml中配置 -```xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -``` - -### 属性设置 -在根节点添加一个名为app的命名空间 -```xml -xmlns:app="http://schemas.android.com/apk/res-auto" -``` -直接在xml中对属性设置 -```xml - -``` -### 显示视图 - -数据源以及事件监听需要在代码中设置 -```java -/** - * 初始化课程控件 - */ - private void initTimetableView() { - //获取控件 - mTimetableView = findViewById(R.id.id_timetableView); - mTimetableView.source(mySubjects) - .callback(new ISchedule.OnItemClickListener() { - @Override - public void onItemClick(View v, List scheduleList) { - display(scheduleList); - } - }) - .callback(new ISchedule.OnWeekChangedListener() { - @Override - public void onWeekChanged(int curWeek) { - Toast.makeText(AttrActivity.this,"第" + curWeek + "周",Toast.LENGTH_SHORT).show(); - } - }) - .showView(); - } -``` - -## 日期栏 -> 本节主要演示如何对日期栏的属性设置以及自定义日期栏的步骤,通用步骤比如:添加控件、获取控件,设置数据源以及显示视图什么的都不再重复了,只讲解核心部分 -> 完整代码参见 [DateActivity](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/DateActivity) - -### 日期栏显示与隐藏 -```java -/** - * 隐藏日期栏 - */ - protected void hideDateView() { - mTimetableView.hideDateView(); - } - - /** - * 显示日期栏 - */ - protected void showDateView() { - mTimetableView.showDateView(); - } -``` -### 自定义日期栏 -**Step1:自定义布局** - -需要定义两个布局,第一个`item_custom_dateview_first.xml`定义的月份的样式 -```xml - - -``` - -第二个`item_custom_dateview.xml`定义的是星期一至星期日的每项的样式 -```xml - - - - - -``` - -**Step2:自定义实现类** - -由于这里实现的日期栏简单,所以直接继承自默认的实现`OnDateBuildAapter`即可,没有用默认的height,用的是自定义的30dp,那么首先将dp->px,然后使用自己的布局进行构建即可。 -注意:由于要修改默认的height,所以`onBuildDayLayout` `onBuildMonthLayout`都必须重写并设置为新的height,否则无效。 - -你也可以直接实现`OnDateBuildListener`接口,更灵活但是操作复杂。 - -```java -/** - * 自定义日期栏 - * 该段代码有点长,但是很好懂,仔细看看会有收获的,嘻嘻 - */ - protected void customDateView() { - mTimetableView.callback( - new OnDateBuildAapter() { - @Override - public View onBuildDayLayout(LayoutInflater mInflate, int pos, int width, int height) { - int newHeight=ScreenUtils.dip2px(DateActivity.this,30); - View v = mInflate.inflate(R.layout.item_custom_dateview, null, false); - TextView dayTextView = v.findViewById(R.id.id_week_day); - dayTextView.setText(dateArray[pos]); - layouts[pos] = v.findViewById(R.id.id_week_layout); - - LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(width, newHeight); - layouts[pos].setLayoutParams(lp); - - return v; - } - - @Override - public View onBuildMonthLayout(LayoutInflater mInflate, int width, int height) { - int newHeight=ScreenUtils.dip2px(DateActivity.this,30); - View first = mInflate.inflate(R.layout.item_custom_dateview_first, null, false); - //月份设置 - textViews[0] = first.findViewById(R.id.id_week_month); - layouts[0] = null; - - LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(width, newHeight); - - int month = Integer.parseInt(weekDates.get(0)); - first.setLayoutParams(lp); - textViews[0].setText(month + "\n月"); - return first; - - } - }) - .updateDateView(); - } -``` -### 恢复默认日期栏 - -```java -/** - * 恢复默认日期栏 - */ - protected void cancelCustomDateView() { - mTimetableView.callback((ISchedule.OnDateBuildListener) null) - .updateDateView(); - } -``` - -## 侧边栏 -> 在课程视图的左侧有一列是侧边栏,本节演示如何对侧边栏的属性进行配置以及自定义侧边栏的步骤 -> 完整代码参见 [SlideActivity](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/SlideActivity) - -### 准备 -**添加控件** -```xml - - -``` -**获取控件** -```java -mTimetableView = findViewById(R.id.id_timetableView); -List mySubjects = SubjectRepertory.loadDefaultSubjects(); -mTimetableView.source(mySubjects) - .curWeek(1) - .showView(); -``` -### 节次时间显示与隐藏 -```java -/** - * 显示时间 - * 设置侧边栏构建监听,TimeSlideAdapter是控件实现的可显示时间的侧边栏 - * 只修改了侧边栏的属性,所以只更新侧边栏即可(性能高),没有必要更新全部(性能低) - * - * @see OnSlideBuildAdapter - */ - protected void showTime() { - String[] times = new String[]{ - "8:00", "9:00", "10:10", "11:00", - "15:00", "16:00", "17:00", "18:00", - "19:30", "20:30", "21:30", "22:30" - }; - OnSlideBuildAdapter slideAdapter = new OnSlideBuildAdapter(); - slideAdapter.setTimes(times); - mTimetableView.callback(slideAdapter); - mTimetableView.updateSlideView(); - } - - /** - * 隐藏时间 - * 将侧边栏监听置Null后,会默认使用默认的构建方法,即不显示时间 - * 只修改了侧边栏的属性,所以只更新侧边栏即可(性能高),没有必要更新全部(性能低) - */ - protected void hideTime() { - mTimetableView.callback((ISchedule.OnSlideBuildListener) null) - .updateSlideView(); - } -``` - -### 修改侧边栏背景 -```java -/** - * 修改侧边栏背景,默认的使用的是OnSlideBuildAdapter, - * 所以可以强转类型 - * - * @param color - */ - protected void modifySlideBgColor(int color) { - OnSlideBuildAdapter listener = (OnSlideBuildAdapter) mTimetableView.onSlideBuildListener(); - listener.setBackground(color); - mTimetableView.updateSlideView(); - } -``` - -### 修改节次文本颜色 -``` - OnSlideBuildAdapter listener = (OnSlideBuildAdapter) mTimetableView.onSlideBuildListener(); - listener.setTextColor(color); - mTimetableView.updateSlideView(); -``` - -### 修改时间文本颜色 -``` -/** - * 修改侧边栏时间文本的颜色值 - * @param color - */ - protected void modifyItemTimeColor(int color){ - String[] times = new String[]{ - "8:00", "9:00", "10:10", "11:00", - "15:00", "16:00", "17:00", "18:00", - "19:30", "20:30", "21:30", "22:30" - }; - OnSlideBuildAdapter listener = (OnSlideBuildAdapter) mTimetableView.onSlideBuildListener(); - listener.setTimes(times) - .setTimeTextColor(color); - mTimetableView.updateSlideView(); - } -``` - -### 自定义侧边栏 - -**Step1:创建布局** - -创建一个XML文件`item_custom_slide.xml`,该文件的内容可完全自定义 - -```xml - - - - -``` -**Step2:设置监听** - -为了简单起见,可以继承自`OnSlideBuildAdapter`,重写`getView()`方法,当然也可以直接实现`ISchedule.OnSlideBuildListener`接口 -``` -/** - * 自定义侧边栏效果 - * 使用自定义的布局文件实现的文字居顶部的效果(默认居中) - */ - protected void customSlideView(){ - mTimetableView.callback( - new OnSlideBuildAdapter() { - @Override - public View getView(int pos, LayoutInflater inflater, int itemHeight, int marTop) { - //获取View并返回,注意设置marTop值 - View v = inflater.inflate(R.layout.item_custom_slide, null, false); - TextView tv = v.findViewById(R.id.item_slide_textview); - LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, - itemHeight); - lp.setMargins(0, marTop, 0, 0); - tv.setLayoutParams(lp); - tv.setText((pos + 1) + ""); - return v; - } - }) - .updateSlideView(); - } -``` - -### 侧边栏效果重置 -``` -/** - * 取消自定义的侧边栏,回到默认状态 - * 只需要将监听器置空即可 - */ - protected void cancelCustomSlideView() { - mTimetableView.callback((ISchedule.OnSlideBuildListener) null) - .updateSlideView(); - } -``` - -## 课程项样式 -> 本节将演示如何配置课程项的样式 -> 完整代码参见 [ItemStyleActivity](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/ItemStyleActivity) - -### 非本周课程显示与隐藏 -``` -/** - * 隐藏非本周课程 - * 修改了内容的显示,所以必须更新全部(性能不高) - * 建议:在初始化时设置该属性 - */ - protected void hideNonThisWeek() { - mTimetableView.isShowNotCurWeek(false).updateView(); - } - - /** - * 显示非本周课程 - * 修改了内容的显示,所以必须更新全部(性能不高) - * 建议:在初始化时设置该属性 - */ - protected void showNonThisWeek() { - mTimetableView.isShowNotCurWeek(true).updateView(); - } -``` - -### 设置间距以及弧度 -``` -/** - * 设置间距以及弧度 - * 该方法只能同时设置四个角的弧度,设置单个角的弧度可参考下文 - */ - protected void setMarginAndCorner() { - mTimetableView.cornerAll(0) - .marTop(0) - .marLeft(0) - .updateView(); - } -``` -### 设置单个角弧度 -``` -/** - * 设置角度(四个角分别控制) - * - * @param leftTop - * @param rightTop - * @param rightBottom - * @param leftBottom - */ - public void setCorner(final int leftTop, final int rightTop, final int rightBottom, final int leftBottom) { - mTimetableView.callback(new OnItemBuildAdapter() { - @Override - public void onItemUpdate(FrameLayout layout, TextView textView, TextView countTextView, Schedule schedule, GradientDrawable gd) { - super.onItemUpdate(layout, textView, countTextView, schedule, gd); - //数组8个元素,四个方向依次为左上、右上、右下、左下, - // 每个方向在数组中占两个元素,值相同 - gd.setCornerRadii(new float[]{leftTop, leftTop, rightTop, rightTop, rightBottom, rightBottom, leftBottom, leftBottom}); - } - }); - mTimetableView.updateView(); - } -``` -### 修改显示的文本 -``` -/** - * 修改显示的文本 - */ - public void buildItemText() { - mTimetableView.callback(new OnItemBuildAdapter() { - @Override - public String getItemText(Schedule schedule, boolean isThisWeek) { - if (isThisWeek) return "[本周]" + schedule.getName(); - return "[非本周]" + schedule.getName(); - } - }) - .updateView(); - } -``` - -### 设置非本周课的背景 -``` -/** - * 设置非本周课的背景 - * - * @param color - */ - public void setNonThisWeekBgcolor(int color) { - mTimetableView.colorPool().setUselessColor(color); - mTimetableView.updateView(); - } -``` -### 课程重叠的样式 -``` -/** - * 修改课程重叠的样式,在该接口中,你可以自定义出很多的效果 - */ - protected void modifyOverlayStyle() { - mTimetableView.callback(new OnItemBuildAdapter() { - @Override - public void onItemUpdate(FrameLayout layout, TextView textView, TextView countTextView, Schedule schedule, GradientDrawable gd) { - super.onItemUpdate(layout, textView, countTextView, schedule, gd); - //可见说明重叠,取消角标,添加角度 - if (countTextView.getVisibility() == View.VISIBLE) { - countTextView.setVisibility(View.GONE); - gd.setCornerRadii(new float[]{0, 0, 20, 20, 0, 0, 0, 0}); - } - } - }); - mTimetableView.updateView(); -``` -## 颜色池 -> 颜色池`ScheduleColorPool`的内部实现是控件维护的一个集合,它管理着课程项的颜色,负责对颜色的存取 -> 完整代码参见 [ColorPoolActivity](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/ColorPoolActivity) - -### 获取颜色池 -以下代码的返回结果就是一个`ScheduleColorPool`实例对象 -``` -mTimetableView.colorPool(); -``` -### 指定颜色 -如果需要让所有课程只在某几种颜色中分配颜色,只需要清空颜色池并加入特定的颜色,在分配颜色时会循环分配颜色池中的颜色 -```java -/** - * 设置指定的颜色,默认情况下颜色池中有一些颜色 - * 所以这里需要先清空一下颜色池 - * @param colors - */ - public void setColor(int... colors){ - mTimetableView.colorPool().clear().add(colors); - mTimetableView.updateView(); - } -``` -### 重置颜色池 -重置后,颜色池恢复到初始状态 -```java -/** - * 重置颜色池 - */ - public void resetColor(){ - mTimetableView.colorPool().reset(); - mTimetableView.updateView(); - } -``` -### 追加颜色 -向颜色池中追加颜色,在为课程项分配颜色时,会按照颜色池中的顺序依次取出颜色,所以并不保证追加的颜色一定会被用到 -```java -/** - * 追加颜色 - * @param colors - */ - public void addColor(int... colors){ - mTimetableView.colorPool().add(colors); - mTimetableView.updateView(); - } -``` -### 设置非本周课程颜色 - -```java -/** - * 设置非本周课的背景 - * - * @param color - */ - public void setNonThisWeekBgcolor(int color) { - mTimetableView.colorPool().setUselessColor(color); - mTimetableView.updateView(); - } -``` - -## 替换滚动布局 -> 为什么会有这个功能?想象这样几个场景:下拉反弹效果、下拉刷新效果、监听到滚动的位置、解决滚动布局嵌套导致的滑动冲突。这几个需求都可以使用自定义View的方式来解决。 -> 替换滚动布局的意思是:你可以使用自定义的`ScrollView`来替换控件中的普通的`ScrollView`,可以想象它将有更好的扩展性。 -> 本节将演示如何实现一个有下拉反弹效果的课表界面,自定义View的知识不在本节的范围之内,有兴趣可以百度。 -> 完整代码参见 [ElasticActivity](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/ElasticActivity) - -### 自定义View -你需要先准备好一个自定义View,根据你的需求而定,可以参考demo中定义的弹性滚动布局`ElasticScrollView` - -### 布局文件 -准备一个布局文件,命名任意,这里命名为`custom_myscrollview.xml`,将以下内容复制到布局文件中,然后将根控件换成自定义控件,注意ID不能改变 -```xml - - - - - - -``` -`custom_myscrollview.xml`中的内容如下: -```xml - - - - - - -``` -### 设置监听 - -```java -/** - * 过程很简单,步骤如下: - * 1.创建一个xml文件,命名为custom_myscrollview.xml - * 2.拷贝一段代码至该文件中,具体内容可以参见custom_myscrollview.xml - * 3.将根布局控件修改为自定义的控件,其他内容无需修改 - * 4.设置滚动布局构建监听并实现其方法,将自定义的xml转换为View返回即可 - * - */ - mTimetableView.source(mySubjects) - .callback(new ISchedule.OnScrollViewBuildListener() { - @Override - public View getScrollView(LayoutInflater mInflate) { - return mInflate.inflate(R.layout.custom_myscrollview, null, false); - } - }) - .showView(); -``` - -## 工具类 -> 控件提供了一个工具类,可以方便的以无界面的方式操作课程数据,本节演示如何使用工具类实现对课程颜色的可视化展示 -> 完整代码参见 [NonViewActivity](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/NonViewActivity) - -### 列表与适配器 -在Activity的布局中放一个ListView -```xml - -``` - -`item_nonview.xml`是ListView中每一项的布局,它的内容如下: -```xml - - - - - - - -``` - -布局文件准备好之后,需要一个适配器 -```java -public class NonViewAdapter extends BaseAdapter { - - List schedules; - Context context; - LayoutInflater inflater; - - public NonViewAdapter(Context context, List schedules) { - this.context = context; - this.schedules = schedules; - inflater = LayoutInflater.from(context); - } - - @Override - public int getCount() { - return schedules.size(); - } - - @Override - public Object getItem(int i) { - return schedules.get(i); - } - - @Override - public long getItemId(int i) { - return i; - } - - @Override - public View getView(int i, View convertView, ViewGroup viewGroup) { - View mView = null; - ViewHolder holder; - if (null == convertView) { - holder = new ViewHolder(); - convertView = inflater.inflate(R.layout.item_nonview, null); - holder.nameTextView = convertView.findViewById(R.id.id_nonview_name); - holder.colorTextView = convertView.findViewById(R.id.id_nonview_color); - convertView.setTag(holder); - } else { - holder = (ViewHolder) convertView.getTag(); - } - - Schedule schedule= (Schedule) getItem(i); - ScheduleColorPool colorPool=new ScheduleColorPool(context); - holder.nameTextView.setText(schedule.getName()); - holder.colorTextView.setBackgroundColor(colorPool.getColorAuto(schedule.getColorRandom())); - return convertView; - } - - class ViewHolder { - TextView nameTextView; - TextView colorTextView; - } -} -``` - -它是如何将课程的颜色找出来的?看下段代码: -```java -Schedule schedule= (Schedule) getItem(i); -ScheduleColorPool colorPool=new ScheduleColorPool(context); -holder.colorTextView.setBackgroundColor(colorPool.getColorAuto(schedule.getColorRandom())); -``` - -继续看,核心就是这一行,适配器中的数据都是被分配过颜色了(怎么分配的见下文),所谓分配颜色就是给它一个编号,然后拿着编号到颜色池中取颜色,`getColorAuto()`不会产生数组越界问题,内部使用模运算来循环的在颜色池中取值 -``` -colorPool.getColorAuto(schedule.getColorRandom()) -``` - -设置适配器 -```java -listView=findViewById(R.id.id_listview); -adapter=new NonViewAdapter(this,schedules); -listView.setAdapter(adapter); -``` - -获取数据 -```java -public List getData() { - List list = ScheduleSupport.transform(SubjectRepertory.loadDefaultSubjects()); - list = ScheduleSupport.getColorReflect(list);//分配颜色 - return list; - } -``` - -### 显示所有课程 -```java -protected void all(){ - schedules.clear(); - schedules.addAll(getData()); - adapter.notifyDataSetChanged(); - } -``` - -### 第一周有课的课程 -```java -/** - * 获取第一周有课的课程并显示出来 - */ - protected void haveTime(){ - List result = new ArrayList<>(); - List[] arr = ScheduleSupport.splitSubjectWithDay(getData()); - for (int i = 0; i < arr.length; i++) { - List tmpList = arr[i]; - for (Schedule schedule : tmpList) { - if (ScheduleSupport.isThisWeek(schedule, 1)) { - result.add(schedule); - } - } - } - schedules.clear(); - schedules.addAll(result); - adapter.notifyDataSetChanged(); - } -``` - -### 周一有课的课程 -```java -/** - * 显示第一周周一有课的课程 - */ - protected void haveTimeWithMonday(){ - List tmpList = ScheduleSupport.getHaveSubjectsWithDay( - getData(), 1, 0); - schedules.clear(); - schedules.addAll(tmpList); - adapter.notifyDataSetChanged(); - } -``` - -## 额外的信息 - -> 设置数据源时可以使用自定义的数据类型,但是必须实现`ScheduleEnable`接口,为什么呢?因为在TimetableView内部保存的数据格式是List的,接口只是起到一个转换的作用,点击事件会回调,会获取到点击位置的一个List集合,此时我们已经拿不到自定义的数据类型了,那么此时我想拿到这门课程的ID怎么办? -> 完整代码参见 [ExtrasActivity](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/ExtrasActivity) - -### 存入额外数据 -Schedule中没有这个字段,自定义类型中有,所以在Schedule新增了一个extras字段,它是一个Map。所以现在这个问题可以这样解决: - -```java -/** - * 自定义实体类需要实现ScheduleEnable接口并实现getSchedule() - * - * @see ScheduleEnable#getSchedule() - */ -public class MySubject implements ScheduleEnable { - //Key - public static final String EXTRAS_ID="extras_id"; - - //额外信息 - private int id=0; - - //可分别与Schedule中的数据域对应 - private String name; - private String room; - private String teacher; - private List weekList; - private int start; - private int step; - private int day; - private String term; - private int colorRandom = 0; - - //省略setter、getter、构造函数 - - @Override - public Schedule getSchedule() { - Schedule schedule=new Schedule(); - schedule.setDay(getDay()); - schedule.setName(getName()); - schedule.setRoom(getRoom()); - schedule.setStart(getStart()); - schedule.setStep(getStep()); - schedule.setTeacher(getTeacher()); - schedule.setWeekList(getWeekList()); - schedule.setColorRandom(2); - schedule.putExtras(EXTRAS_ID,getId());//重要的位置 - return schedule; - } - - public void setId(int id) { - this.id = id; - } - - public int getId() { - return id; - } -} - -``` - -### 读出额外数据 -``` -/** - * 初始化课程控件 - */ - private void initTimetableView() { - //获取控件 - mTimetableView = findViewById(R.id.id_timetableView); - - mTimetableView.source(mySubjects) - .curWeek(1) - .curTerm("大三下学期") - .maxSlideItem(10) - .callback(new ISchedule.OnItemClickListener() { - @Override - public void onItemClick(View v, List scheduleList) { - display(scheduleList); - } - }) - .showView(); - } - - /** - * 显示内容 - * - * @param beans - */ - protected void display(List beans) { - String str = ""; - for (Schedule bean : beans) { - str += "["+bean.getName() + "]的id:"+bean.getExtras().get(MySubject.EXTRAS_ID)+"\n"; - } - Toast.makeText(this, str, Toast.LENGTH_SHORT).show(); - } - -``` - -它是通过这样的方式拿到的额外数据: -```java - String id=bean.getExtras().get(MySubject.EXTRAS_ID); -``` - -## 旗标布局 - -> 什么是旗标布局?我自己随意起的名,不要当真,嘻嘻。 -> 旗标布局是指当我们点击空白格子的时候出现一个布局,该布局占据一个格子的位置,它所在的位置就是我们所点击的格子的位置,该布局可以响应事件并回调处理 -> 完整代码参见 [FlaglayoutActivity](https://github.com/zfman/TimetableView/tree/master/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/FlaglayoutActivity) - -默认情况下,旗标布局是开启状态的,即不需要任何配置,在空白格子处点击会出现旗标布局,当然,它也可以关闭。 - -### 事件监听 -`OnSpaceItemClickListener`是空白格子点击监听器,当用户点击空白格子时,会回调该接口中的方法并传入点击的格子的位置,然后需要将旗标布局移动到指定格子位置,`OnSpaceItemClickAdapter`是这个接口的默认实现,这部分一般不用开发者关心 - -现在的效果是点击空白格子后,在点击的格子位置会出现一个旗标布局,开发者只需要使用使用`OnFlaglayoutClickListener`来监听旗标布局的点击事件即可,无需关心其他 - -以下代码中监听了三个事件: - -- 课程项的单击 -- 课程项的长按 -- 空白格子的单击(默认)以及旗标布局的单击 -```java -private void initTimetableView() { - mTimetableView = findViewById(R.id.id_timetableView); - List mySubjects = SubjectRepertory.loadDefaultSubjects(); - mTimetableView.source(mySubjects) - .curWeek(1) - .maxSlideItem(10) - .callback(new ISchedule.OnItemClickListener() { - @Override - public void onItemClick(View v, List scheduleList) { - display(scheduleList); - } - }) - .callback(new ISchedule.OnItemLongClickListener() { - @Override - public void onLongClick(View v, int day, int start) { - Toast.makeText(FlaglayoutActivity.this, - "长按:周" + day + ",第" + start + "节", - Toast.LENGTH_SHORT).show(); - } - }) - .callback(new ISchedule.OnFlaglayoutClickListener() { - @Override - public void onFlaglayoutClick(int day, int start) { - mTimetableView.hideFlaglayout(); - Toast.makeText(FlaglayoutActivity.this, - "点击了旗标:周" + (day + 1) + ",第" + start + "节", - Toast.LENGTH_SHORT).show(); - } - }) - .showView(); - } -``` - -### 背景修改与重置 -```java -/** - * 修改旗标布局的背景色 - * - * @param color - */ - private void modifyFlagBgcolor(int color) { - mTimetableView.flagBgcolor(color).updateFlaglayout(); - } - - /** - * 重置旗标布局的背景色 - */ - private void resetFlagBgcolor() { - mTimetableView.resetFlagBgcolor().updateFlaglayout(); - } -``` - -### 开启与关闭 -``` -/** - * 取消旗标布局 - */ - private void cancelFlagBgcolor() { - mTimetableView.isShowFlaglayout(false).updateFlaglayout(); - } - - /** - * 显示旗标布局 - */ - private void resetFlaglayout() { - mTimetableView.isShowFlaglayout(true).updateFlaglayout(); - } -``` - -### 显示与隐藏 -``` -//显示旗标布局 -mTimetableView.showFlaglayout(); - -//隐藏旗标布局 -mTimetableView.hideFlaglayout(); -``` +- [快速开始](https://github.com/zfman/TimetableView/wiki/%E6%9C%80%E6%96%B0%E6%96%87%E6%A1%A3) +- [Javadocs](http://www.liuzhuangfei.com/github/timetableview/docs/v2.0.3/) +- [示例app下载](https://raw.githubusercontent.com/zfman/TimetableView/master/apks/v2.0.3.apk) +- [变更历史](https://github.com/zfman/TimetableView/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E) +历史版本的文档可以在 [历史文档以及源码结构分析](https://github.com/zfman/TimetableView/wiki) 中找到 +## 代码贡献规范 +> 建议先在[源码结构分析](https://github.com/zfman/TimetableView/wiki)了解一下项目轮廓 +在贡献代码前需要先确认是否安装了Git以及Android Studio,请参考[廖雪峰的Git教程](https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000)、[Android Studio下载](https://developer.android.google.cn/studio/?utm_source=androiddevtools.cn&utm_medium=website) +我非常欢迎其他开发者为本项目贡献代码(`Pull Request`),请将您贡献的代码提交到`dev`分支,我检查完毕后会将其合并到`dev`分支。 +在贡献代码时应该注意以下事情,否则可能会被我拒绝的哟~: +- 提交的每个PR要尽可能的小 +- 复杂的逻辑应该添加尽可能多的注释 +- 方法的命名格式尽可能的和现有的保持一致 +## 感谢贡献者 +> 感谢所有参与本项目以及帮助我一起完善这个项目的开发者~~ +|用户 | Issues | pull request| +| - | :-: | -: | +|[Mystery00](https://github.com/Mystery00)|[#6.WeekView数组越界](https://github.com/zfman/TimetableView/issues/6) |[修复#6,并添加新功能](https://github.com/zfman/TimetableView/pull/7)| +## 关于我 +- [CSDN](https://blog.csdn.net/lzhuangfei) +- [Github](https://github.com/zfman) +- `QQ:1193600556`:刘壮飞 diff --git a/apks/v2.0.3.apk b/apks/v2.0.3.apk new file mode 100644 index 0000000..1980f13 Binary files /dev/null and b/apks/v2.0.3.apk differ diff --git a/docs/v2.0.3/allclasses-frame.html b/docs/v2.0.3/allclasses-frame.html new file mode 100644 index 0000000..3db3921 --- /dev/null +++ b/docs/v2.0.3/allclasses-frame.html @@ -0,0 +1,55 @@ + + + + + + +所有类 + + + + + +

所有类

+ + + diff --git a/docs/v2.0.3/allclasses-noframe.html b/docs/v2.0.3/allclasses-noframe.html new file mode 100644 index 0000000..f5bb8f1 --- /dev/null +++ b/docs/v2.0.3/allclasses-noframe.html @@ -0,0 +1,55 @@ + + + + + + +所有类 + + + + + +

所有类

+ + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/TimetableView.html b/docs/v2.0.3/com/zhuangfei/timetable/TimetableView.html new file mode 100644 index 0000000..3a7790e --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/TimetableView.html @@ -0,0 +1,1860 @@ + + + + + + +TimetableView + + + + + + + + + + + + +
+
com.zhuangfei.timetable
+

类 TimetableView

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • android.view.View
    • +
    • +
        +
      • android.view.ViewGroup
      • +
      • +
          +
        • android.widget.LinearLayout
        • +
        • +
            +
          • com.zhuangfei.timetable.TimetableView
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      嵌套类概要

      +
        +
      • + + +

        从类继承的嵌套类/接口 android.widget.LinearLayout

        +android.widget.LinearLayout.LayoutParams
      • +
      +
        +
      • + + +

        从类继承的嵌套类/接口 android.view.ViewGroup

        +android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
      • +
      +
        +
      • + + +

        从类继承的嵌套类/接口 android.view.View

        +android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
      • +
      +
    • +
    + +
      +
    • + + +

      字段概要

      +
        +
      • + + +

        从类继承的字段 android.widget.LinearLayout

        +HORIZONTAL, SHOW_DIVIDER_BEGINNING, SHOW_DIVIDER_END, SHOW_DIVIDER_MIDDLE, SHOW_DIVIDER_NONE, VERTICAL
      • +
      +
        +
      • + + +

        从类继承的字段 android.view.ViewGroup

        +CLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
      • +
      +
        +
      • + + +

        从类继承的字段 android.view.View

        +ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z
      • +
      +
    • +
    + +
      +
    • + + +

      构造器概要

      + + + + + + + + +
      构造器 
      构造器和说明
      TimetableView(android.content.Context context, + android.util.AttributeSet attrs) +
      初始化
      +
      +
    • +
    + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      TimetableViewalpha(float allAlpha) +
      将三个透明度统一设置
      +
      TimetableViewalpha(float dateAlpha, + float slideAlpha, + float itemAlpha) +
      透明度设置
      +
      TimetableViewcallback(ISchedule.OnDateBuildListener onDateBuildListener) +
      设置日期栏构建监听器
      +
      TimetableViewcallback(ISchedule.OnFlaglayoutClickListener onFlaglayoutClickListener) +
      设置旗标布局点击监听器
      +
      TimetableViewcallback(ISchedule.OnItemBuildListener onItemBuildListener) +
      设置课程项构建监听器
      +
      TimetableViewcallback(ISchedule.OnItemClickListener onItemClickListener) +
      设置Item点击监听器
      +
      TimetableViewcallback(ISchedule.OnItemLongClickListener onItemLongClickListener) +
      设置课程项长按监听器
      +
      TimetableViewcallback(ISchedule.OnScrollViewBuildListener onScrollViewBuildListener) +
      设置滚动布局构建监听器
      +
      TimetableViewcallback(ISchedule.OnSlideBuildListener onSlideBuildListener) +
      设置侧边栏构建监听器
      +
      TimetableViewcallback(ISchedule.OnSpaceItemClickListener onSpaceItemClickListener) +
      设置空白格子点击监听器,点击之后会出现一个旗标布局
      +
      TimetableViewcallback(ISchedule.OnWeekChangedListener onWeekChangedListener) +
      设置周次改变监听器
      +
      voidchangeWeek(int week, + boolean isCurWeek) +
      周次切换
      +
      voidchangeWeekForce(int week) +
      切换周次且修改为当前周
      +
      voidchangeWeekOnly(int week) +
      仅仅切换周次,不修改当前周
      +
      ScheduleColorPoolcolorPool() +
      获取颜色池
      +
      intcorner(boolean isThisWeek) +
      获取课程角度
      +
      TimetableViewcorner(int corner, + boolean isThisWeek) +
      课程角度设置
      +
      TimetableViewcornerAll(int cornerValue) +
      设置本周、非本周相同的弧度
      +
      java.lang.StringcurTerm() +
      获取当前学期
      +
      TimetableViewcurTerm(java.lang.String curTerm) +
      设置当前学期
      +
      intcurWeek() +
      获取当前周
      +
      TimetableViewcurWeek(int curWeek) +
      设置当前周
      +
      TimetableViewcurWeek(java.lang.String startTime) +
      设置开学时间来计算当前周
      +
      TimetableViewdata(java.util.List<Schedule> dataSource) +
      设置数据源
      +
      java.util.List<Schedule>dataSource() +
      获取数据源
      +
      floatdateAlpha() +
      获取日期栏透明度
      +
      intdp2px(int dp) +
      dp->px
      +
      intflagBgcolor() +
      获取旗标布局背景颜色
      +
      TimetableViewflagBgcolor(int color) +
      设置旗标布局背景颜色
      +
      android.widget.LinearLayoutflagLayout() +
      获取旗标布局
      +
      voidhideDateView() +
      将日期栏设为隐藏状态
      +
      TimetableViewhideFlaglayout() +
      隐藏旗标布局,立即生效
      +
      booleanisShowFlaglayout() +
      获取是否显示旗标布局
      +
      TimetableViewisShowFlaglayout(boolean isShowFlaglayout) +
      设置是否显示旗标布局
      +
      booleanisShowNotCurWeek() +
      判断是否显示非本周课程
      +
      TimetableViewisShowNotCurWeek(boolean showNotCurWeek) +
      设置是否显示非本周课程
      +
      booleanisShowWeekends() 
      TimetableViewisShowWeekends(boolean isShowWeekends) +
      是否显示周末
      +
      floatitemAlpha() +
      获取课程项透明度
      +
      intitemHeight() +
      获取课程项的高度
      +
      TimetableViewitemHeight(int itemHeightPx) +
      设置课程项的高度
      +
      TimetableViewitemTextColor(int color, + boolean isThisWeek) +
      课程项文本颜色
      +
      intitemTextColorWithNotThis() +
      获取非本周课程项文本颜色
      +
      intitemTextColorWithThisWeek() +
      获取本周课程项文本颜色
      +
      intmarLeft() +
      获取左边距
      +
      TimetableViewmarLeft(int marLeftPx) +
      设置左边距值
      +
      intmarTop() +
      获取上边距
      +
      TimetableViewmarTop(int marTopPx) +
      设置上边距值
      +
      intmaxSlideItem() +
      获取最大节次
      +
      TimetableViewmaxSlideItem(int maxSlideItem) +
      设置最大节次
      +
      intmonthWidth() +
      获取侧边栏宽度px
      +
      TimetableViewmonthWidthDp(int monthWidthDp) +
      设置侧边栏宽度dp
      +
      TimetableViewmonthWidthPx(int monthWidthPx) +
      设置侧边栏宽度px
      +
      ISchedule.OnDateBuildListeneronDateBuildListener() +
      获取日期栏构建监听器
      +
      ISchedule.OnFlaglayoutClickListeneronFlaglayoutClickListener() +
      获取旗标布局点击监听器
      +
      ISchedule.OnItemBuildListeneronItemBuildListener() +
      获取Item构建监听器
      +
      ISchedule.OnItemClickListeneronItemClickListener() +
      获取Item点击监听
      +
      ISchedule.OnItemLongClickListeneronItemLongClickListener() +
      获取课程项长按监听器
      +
      ISchedule.OnScrollViewBuildListeneronScrollViewBuildListener() +
      获取滚动布局构建监听器
      +
      ISchedule.OnSlideBuildListeneronSlideBuildListener() +
      获取侧边栏构建监听
      +
      ISchedule.OnSpaceItemClickListeneronSpaceItemClickListener() +
      获取空白格子点击监听器
      +
      ISchedule.OnWeekChangedListeneronWeekChangedListener() +
      获取周次改变监听器
      +
      AbsOperateroperater() 
      TimetableViewoperater(AbsOperater operater) 
      TimetableViewresetFlagBgcolor() +
      重置旗标布局背景色
      +
      voidshowDateView() +
      将日期栏设为可见状态
      +
      TimetableViewshowFlaglayout() +
      显示旗标布局,立即生效
      +
      voidshowView() 
      floatslideAlpha() +
      获取侧边栏透明度
      +
      TimetableViewsource(java.util.List<? extends ScheduleEnable> dataSource) +
      设置数据源
      +
      TimetableViewthisWeekCorner(int thisWeekCorner) +
      设置本周课程的弧度
      +
      voidupdateDateView() +
      更新日期栏
      +
      voidupdateFlaglayout() +
      更新旗标布局的背景色
      +
      voidupdateSlideView() +
      侧边栏更新
      +
      voidupdateView() +
      等同于showView()
      +
      +
        +
      • + + +

        从类继承的方法 android.widget.LinearLayout

        +checkLayoutParams, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getBaseline, getBaselineAlignedChildIndex, getDividerDrawable, getDividerPadding, getGravity, getOrientation, getShowDividers, getWeightSum, isBaselineAligned, isMeasureWithLargestChildEnabled, onDraw, onLayout, onMeasure, onRtlPropertiesChanged, setBaselineAligned, setBaselineAlignedChildIndex, setDividerDrawable, setDividerPadding, setGravity, setHorizontalGravity, setMeasureWithLargestChildEnabled, setOrientation, setShowDividers, setVerticalGravity, setWeightSum, shouldDelayChildPressedState
      • +
      +
        +
      • + + +

        从类继承的方法 android.view.ViewGroup

        +addChildrenForAccessibility, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAttachedToWindow, onCreateDrawableState, onDescendantInvalidated, onDetachedFromWindow, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
      • +
      +
        +
      • + + +

        从类继承的方法 android.view.View

        +addExtraDataToAccessibilityNodeInfo, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, dispatchStartTemporaryDetach, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintList, getBackgroundTintMode, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getImportantForAutofill, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, keyboardNavigationClusterSearch, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideStructure, onProvideVirtualStructure, onRestoreInstanceState, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAutofillHints, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForeground, setForegroundGravity, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw
      • +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        从接口继承的方法 android.view.ViewParent

        +canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayout
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        TimetableView

        +
        public TimetableView(android.content.Context context,
        +                     android.util.AttributeSet attrs)
        +
        初始化
        +
        +
        参数:
        +
        context -
        +
        attrs -
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        isShowWeekends

        +
        public TimetableView isShowWeekends(boolean isShowWeekends)
        +
        是否显示周末
        +
        +
        参数:
        +
        isShowWeekends -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        isShowWeekends

        +
        public boolean isShowWeekends()
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        monthWidthDp

        +
        public TimetableView monthWidthDp(int monthWidthDp)
        +
        设置侧边栏宽度dp
        +
        +
        参数:
        +
        monthWidthDp -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        monthWidthPx

        +
        public TimetableView monthWidthPx(int monthWidthPx)
        +
        设置侧边栏宽度px
        +
        +
        参数:
        +
        monthWidthPx -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        monthWidth

        +
        public int monthWidth()
        +
        获取侧边栏宽度px
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        itemTextColor

        +
        public TimetableView itemTextColor(int color,
        +                                   boolean isThisWeek)
        +
        课程项文本颜色
        +
        +
        参数:
        +
        color - 颜色
        +
        isThisWeek - 是否本周,true:设置当前周文本颜色,false:设置非本周文本颜色
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        itemTextColorWithThisWeek

        +
        public int itemTextColorWithThisWeek()
        +
        获取本周课程项文本颜色
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        itemTextColorWithNotThis

        +
        public int itemTextColorWithNotThis()
        +
        获取非本周课程项文本颜色
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        itemAlpha

        +
        public float itemAlpha()
        +
        获取课程项透明度
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        slideAlpha

        +
        public float slideAlpha()
        +
        获取侧边栏透明度
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        dateAlpha

        +
        public float dateAlpha()
        +
        获取日期栏透明度
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        alpha

        +
        public TimetableView alpha(float dateAlpha,
        +                           float slideAlpha,
        +                           float itemAlpha)
        +
        透明度设置
        +
        +
        参数:
        +
        dateAlpha - 日期栏透明度
        +
        slideAlpha - 侧边栏透明度
        +
        itemAlpha - 课程项透明度
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        alpha

        +
        public TimetableView alpha(float allAlpha)
        +
        将三个透明度统一设置
        +
        +
        参数:
        +
        allAlpha - 日期栏、侧边栏、课程项的透明度
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        flagBgcolor

        +
        public TimetableView flagBgcolor(int color)
        +
        设置旗标布局背景颜色
        +
        +
        参数:
        +
        color -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        resetFlagBgcolor

        +
        public TimetableView resetFlagBgcolor()
        +
        重置旗标布局背景色
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        isShowFlaglayout

        +
        public boolean isShowFlaglayout()
        +
        获取是否显示旗标布局
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        isShowFlaglayout

        +
        public TimetableView isShowFlaglayout(boolean isShowFlaglayout)
        +
        设置是否显示旗标布局
        +
        +
        参数:
        +
        isShowFlaglayout -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        flagBgcolor

        +
        public int flagBgcolor()
        +
        获取旗标布局背景颜色
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        flagLayout

        +
        public android.widget.LinearLayout flagLayout()
        +
        获取旗标布局
        +
        +
        返回:
        +
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        curWeek

        +
        public TimetableView curWeek(int curWeek)
        +
        设置当前周
        +
        +
        参数:
        +
        curWeek - 当前周
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        curWeek

        +
        public TimetableView curWeek(java.lang.String startTime)
        +
        设置开学时间来计算当前周
        +
        +
        参数:
        +
        startTime - 满足"yyyy-MM-dd HH:mm:ss"模式的字符串
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        curWeek

        +
        public int curWeek()
        +
        获取当前周
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        curTerm

        +
        public TimetableView curTerm(java.lang.String curTerm)
        +
        设置当前学期
        +
        +
        参数:
        +
        curTerm -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        curTerm

        +
        public java.lang.String curTerm()
        +
        获取当前学期
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        dataSource

        +
        public java.util.List<Schedule> dataSource()
        +
        获取数据源
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        data

        +
        public TimetableView data(java.util.List<Schedule> dataSource)
        +
        设置数据源
        +
        +
        参数:
        +
        dataSource -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        source

        +
        public TimetableView source(java.util.List<? extends ScheduleEnable> dataSource)
        +
        设置数据源
        +
        +
        参数:
        +
        dataSource -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        maxSlideItem

        +
        public TimetableView maxSlideItem(int maxSlideItem)
        +
        设置最大节次
        +
        +
        参数:
        +
        maxSlideItem - 最大节次
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        maxSlideItem

        +
        public int maxSlideItem()
        +
        获取最大节次
        +
        +
        返回:
        +
        最大节次
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        thisWeekCorner

        +
        public TimetableView thisWeekCorner(int thisWeekCorner)
        +
        设置本周课程的弧度
        +
        +
        参数:
        +
        thisWeekCorner - 弧度
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        cornerAll

        +
        public TimetableView cornerAll(int cornerValue)
        +
        设置本周、非本周相同的弧度
        +
        +
        参数:
        +
        cornerValue - 弧度
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        corner

        +
        public TimetableView corner(int corner,
        +                            boolean isThisWeek)
        +
        课程角度设置
        +
        +
        参数:
        +
        corner - 角度px
        +
        isThisWeek - 是否本周上
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        corner

        +
        public int corner(boolean isThisWeek)
        +
        获取课程角度
        +
        +
        参数:
        +
        isThisWeek - 是否本周上
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        isShowNotCurWeek

        +
        public TimetableView isShowNotCurWeek(boolean showNotCurWeek)
        +
        设置是否显示非本周课程
        +
        +
        参数:
        +
        showNotCurWeek - 如果为true,将显示非本周,否则隐藏非本周
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        isShowNotCurWeek

        +
        public boolean isShowNotCurWeek()
        +
        判断是否显示非本周课程
        +
        +
        返回:
        +
        true:显示,false:不显示
        +
        +
      • +
      + + + + + + + +
        +
      • +

        dp2px

        +
        public int dp2px(int dp)
        +
        dp->px
        +
        +
        参数:
        +
        dp -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        marTop

        +
        public TimetableView marTop(int marTopPx)
        +
        设置上边距值
        +
        +
        参数:
        +
        marTopPx -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        marLeft

        +
        public TimetableView marLeft(int marLeftPx)
        +
        设置左边距值
        +
        +
        参数:
        +
        marLeftPx -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        itemHeight

        +
        public TimetableView itemHeight(int itemHeightPx)
        +
        设置课程项的高度
        +
        +
        参数:
        +
        itemHeightPx -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        itemHeight

        +
        public int itemHeight()
        +
        获取课程项的高度
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        marLeft

        +
        public int marLeft()
        +
        获取左边距
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        marTop

        +
        public int marTop()
        +
        获取上边距
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        updateView

        +
        public void updateView()
        +
        等同于showView()
        +
        +
        另请参阅:
        +
        showView()
        +
        +
      • +
      + + + +
        +
      • +

        hideFlaglayout

        +
        public TimetableView hideFlaglayout()
        +
        隐藏旗标布局,立即生效
        +
      • +
      + + + +
        +
      • +

        showFlaglayout

        +
        public TimetableView showFlaglayout()
        +
        显示旗标布局,立即生效
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        hideDateView

        +
        public void hideDateView()
        +
        将日期栏设为隐藏状态
        +
      • +
      + + + +
        +
      • +

        showDateView

        +
        public void showDateView()
        +
        将日期栏设为可见状态
        +
      • +
      + + + +
        +
      • +

        updateDateView

        +
        public void updateDateView()
        +
        更新日期栏
        +
      • +
      + + + +
        +
      • +

        updateSlideView

        +
        public void updateSlideView()
        +
        侧边栏更新
        +
      • +
      + + + +
        +
      • +

        changeWeek

        +
        public void changeWeek(int week,
        +                       boolean isCurWeek)
        +
        周次切换
        +
        +
        参数:
        +
        week - 周次
        +
        isCurWeek - 是否强制设置为本周
        +
        +
      • +
      + + + +
        +
      • +

        changeWeekOnly

        +
        public void changeWeekOnly(int week)
        +
        仅仅切换周次,不修改当前周
        +
        +
        参数:
        +
        week -
        +
        +
      • +
      + + + +
        +
      • +

        changeWeekForce

        +
        public void changeWeekForce(int week)
        +
        切换周次且修改为当前周
        +
        +
        参数:
        +
        week -
        +
        +
      • +
      + + + +
        +
      • +

        updateFlaglayout

        +
        public void updateFlaglayout()
        +
        更新旗标布局的背景色
        +
      • +
      + + + +
        +
      • +

        showView

        +
        public void showView()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnDateBuildListener.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnDateBuildListener.html new file mode 100644 index 0000000..36702cf --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnDateBuildListener.html @@ -0,0 +1,305 @@ + + + + + + +ISchedule.OnDateBuildListener + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 ISchedule.OnDateBuildListener

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    OnDateBuildAapter
    +
    +
    +
    封闭接口:
    +
    ISchedule
    +
    +
    +
    +
    public static interface ISchedule.OnDateBuildListener
    +
    日期构造监听器
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 实例方法 抽象方法 
      限定符和类型方法和说明
      android.view.View[]getDateViews(android.view.LayoutInflater mInflate, + float monthWidth, + float perWidth, + int height) +
      获取View数组 + 被废弃,自v2.0.3起该方法无效
      +
      voidonHighLight() +
      为日期栏设置高亮时回调
      +
      voidonInit(android.widget.LinearLayout layout, + float alpha) +
      初始化方法
      +
      voidonUpdateDate(int curWeek, + int targetWeek) +
      更新日期时回调
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        onInit

        +
        void onInit(android.widget.LinearLayout layout,
        +            float alpha)
        +
        初始化方法
        +
        +
        参数:
        +
        layout - 日期栏容器
        +
        alpha - 透明度
        +
        +
      • +
      + + + +
        +
      • +

        getDateViews

        +
        android.view.View[] getDateViews(android.view.LayoutInflater mInflate,
        +                                 float monthWidth,
        +                                 float perWidth,
        +                                 int height)
        +
        获取View数组 + 被废弃,自v2.0.3起该方法无效
        +
        +
        参数:
        +
        mInflate - 转换器
        +
        monthWidth - 月份宽度px
        +
        perWidth - 日期每项宽度px
        +
        height - 默认的日期栏高度
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        onHighLight

        +
        void onHighLight()
        +
        为日期栏设置高亮时回调
        +
      • +
      + + + +
        +
      • +

        onUpdateDate

        +
        void onUpdateDate(int curWeek,
        +                  int targetWeek)
        +
        更新日期时回调
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnFlaglayoutClickListener.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnFlaglayoutClickListener.html new file mode 100644 index 0000000..ab2a7e8 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnFlaglayoutClickListener.html @@ -0,0 +1,239 @@ + + + + + + +ISchedule.OnFlaglayoutClickListener + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 ISchedule.OnFlaglayoutClickListener

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    OnFlaglayoutClickAdapter
    +
    +
    +
    封闭接口:
    +
    ISchedule
    +
    +
    +
    +
    public static interface ISchedule.OnFlaglayoutClickListener
    +
    旗标布局点击监听器
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        onFlaglayoutClick

        +
        void onFlaglayoutClick(int day,
        +                       int start)
        +
        当旗标布局被点击时回调
        +
        +
        参数:
        +
        day - 表示周几,0:周一,6:周日
        +
        start - 表示点击空白格子的节次,1:第一节
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnItemBuildListener.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnItemBuildListener.html new file mode 100644 index 0000000..6115d2f --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnItemBuildListener.html @@ -0,0 +1,272 @@ + + + + + + +ISchedule.OnItemBuildListener + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 ISchedule.OnItemBuildListener

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    OnItemBuildAdapter
    +
    +
    +
    封闭接口:
    +
    ISchedule
    +
    +
    +
    +
    public static interface ISchedule.OnItemBuildListener
    +
    课程项构建时回调
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + +
      所有方法 实例方法 抽象方法 
      限定符和类型方法和说明
      java.lang.StringgetItemText(Schedule schedule, + boolean isThisWeek) +
      构建课程项的文本时回调.
      +
      voidonItemUpdate(android.widget.FrameLayout layout, + android.widget.TextView textView, + android.widget.TextView countTextView, + Schedule schedule, + android.graphics.drawable.GradientDrawable gd) +
      课程项构建完成后回调.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        getItemText

        +
        java.lang.String getItemText(Schedule schedule,
        +                             boolean isThisWeek)
        +
        构建课程项的文本时回调.
        +
        +
        参数:
        +
        schedule - 该位置对应的课程实体
        +
        isThisWeek - 该课程是否是本周上
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        onItemUpdate

        +
        void onItemUpdate(android.widget.FrameLayout layout,
        +                  android.widget.TextView textView,
        +                  android.widget.TextView countTextView,
        +                  Schedule schedule,
        +                  android.graphics.drawable.GradientDrawable gd)
        +
        课程项构建完成后回调.
        +
        +
        参数:
        +
        layout - 课程项的帧布局
        +
        textView - 课程项的内容区域
        +
        countTextView - 课程项的角标
        +
        schedule - 课程实体
        +
        gd - 内容区域的背景是使用GradientDrawable来设置的,你可以二次设置
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnItemClickListener.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnItemClickListener.html new file mode 100644 index 0000000..0e514cb --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnItemClickListener.html @@ -0,0 +1,239 @@ + + + + + + +ISchedule.OnItemClickListener + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 ISchedule.OnItemClickListener

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    OnItemClickAdapter
    +
    +
    +
    封闭接口:
    +
    ISchedule
    +
    +
    +
    +
    public static interface ISchedule.OnItemClickListener
    +
    课程项点击监听器
    +
  • +
+
+
+
    +
  • + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        onItemClick

        +
        void onItemClick(android.view.View v,
        +                 java.util.List<Schedule> scheduleList)
        +
        当课程项被点击时回调
        +
        +
        参数:
        +
        v -
        +
        scheduleList - 该位置的所有课程
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnItemLongClickListener.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnItemLongClickListener.html new file mode 100644 index 0000000..da438eb --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnItemLongClickListener.html @@ -0,0 +1,242 @@ + + + + + + +ISchedule.OnItemLongClickListener + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 ISchedule.OnItemLongClickListener

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    OnItemLongClickAdapter
    +
    +
    +
    封闭接口:
    +
    ISchedule
    +
    +
    +
    +
    public static interface ISchedule.OnItemLongClickListener
    +
    课程项长按事件监听器
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法概要

      + + + + + + + + + + +
      所有方法 实例方法 抽象方法 
      限定符和类型方法和说明
      voidonLongClick(android.view.View v, + int day, + int start) +
      当课程项被点击时回调
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        onLongClick

        +
        void onLongClick(android.view.View v,
        +                 int day,
        +                 int start)
        +
        当课程项被点击时回调
        +
        +
        参数:
        +
        v -
        +
        day - 星期,1:周一,7:周日
        +
        start - 节次,从1开始
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnScrollViewBuildListener.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnScrollViewBuildListener.html new file mode 100644 index 0000000..7e93f5f --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnScrollViewBuildListener.html @@ -0,0 +1,237 @@ + + + + + + +ISchedule.OnScrollViewBuildListener + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 ISchedule.OnScrollViewBuildListener

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    OnScrollViewBuildAdapter
    +
    +
    +
    封闭接口:
    +
    ISchedule
    +
    +
    +
    +
    public static interface ISchedule.OnScrollViewBuildListener
    +
    滚动布局构建监听器
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法概要

      + + + + + + + + + + +
      所有方法 实例方法 抽象方法 
      限定符和类型方法和说明
      android.view.ViewgetScrollView(android.view.LayoutInflater mInflate) +
      构建滚动布局时回调
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        getScrollView

        +
        android.view.View getScrollView(android.view.LayoutInflater mInflate)
        +
        构建滚动布局时回调
        +
        +
        参数:
        +
        mInflate -
        +
        返回:
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnSlideBuildListener.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnSlideBuildListener.html new file mode 100644 index 0000000..aa4ac65 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnSlideBuildListener.html @@ -0,0 +1,270 @@ + + + + + + +ISchedule.OnSlideBuildListener + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 ISchedule.OnSlideBuildListener

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    OnSlideBuildAdapter
    +
    +
    +
    封闭接口:
    +
    ISchedule
    +
    +
    +
    +
    public static interface ISchedule.OnSlideBuildListener
    +
    侧边栏构建监听器
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + +
      所有方法 实例方法 抽象方法 
      限定符和类型方法和说明
      android.view.ViewgetView(int pos, + android.view.LayoutInflater inflater, + int itemHeight, + int marTop) +
      构建每项
      +
      voidonInit(android.widget.LinearLayout layout, + float alpha) +
      初始化方法
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        getView

        +
        android.view.View getView(int pos,
        +                          android.view.LayoutInflater inflater,
        +                          int itemHeight,
        +                          int marTop)
        +
        构建每项
        +
        +
        参数:
        +
        pos - 位置
        +
        inflater - 转换器
        +
        itemHeight - 课程项的高度
        +
        marTop - 课程项的marTop值
        +
        返回:
        +
        构建好的一个侧边项
        +
        +
      • +
      + + + +
        +
      • +

        onInit

        +
        void onInit(android.widget.LinearLayout layout,
        +            float alpha)
        +
        初始化方法
        +
        +
        参数:
        +
        layout - 日期栏容器
        +
        alpha - 透明度
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnSpaceItemClickListener.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnSpaceItemClickListener.html new file mode 100644 index 0000000..ab1355f --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnSpaceItemClickListener.html @@ -0,0 +1,273 @@ + + + + + + +ISchedule.OnSpaceItemClickListener + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 ISchedule.OnSpaceItemClickListener

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    OnSpaceItemClickAdapter
    +
    +
    +
    封闭接口:
    +
    ISchedule
    +
    +
    +
    +
    public static interface ISchedule.OnSpaceItemClickListener
    +
    空白格子点击监听器
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + +
      所有方法 实例方法 抽象方法 
      限定符和类型方法和说明
      voidonInit(android.widget.LinearLayout flagLayout, + int monthWidth, + int itemWidth, + int itemHeight, + int marTop, + int marLeft) +
      初始化方法
      +
      voidonSpaceItemClick(int day, + int start) +
      当课程项被点击时回调
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        onSpaceItemClick

        +
        void onSpaceItemClick(int day,
        +                      int start)
        +
        当课程项被点击时回调
        +
        +
        参数:
        +
        day - 表示周几,0:周一,6:周日
        +
        start - 表示点击空白格子的节次,1:第一节
        +
        +
      • +
      + + + +
        +
      • +

        onInit

        +
        void onInit(android.widget.LinearLayout flagLayout,
        +            int monthWidth,
        +            int itemWidth,
        +            int itemHeight,
        +            int marTop,
        +            int marLeft)
        +
        初始化方法
        +
        +
        参数:
        +
        flagLayout - 一个指示器的布局
        +
        monthWidth - 月份列宽度
        +
        itemWidth - 课程项宽度,itemWidth:是包含了边距的,设置宽度时所以需要减去边距
        +
        itemHeight - 课程项高度
        +
        marTop - 外边距
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnWeekChangedListener.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnWeekChangedListener.html new file mode 100644 index 0000000..cc90bc7 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.OnWeekChangedListener.html @@ -0,0 +1,237 @@ + + + + + + +ISchedule.OnWeekChangedListener + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 ISchedule.OnWeekChangedListener

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    OnWeekChangedAdapter
    +
    +
    +
    封闭接口:
    +
    ISchedule
    +
    +
    +
    +
    public static interface ISchedule.OnWeekChangedListener
    +
    周次改变监听器
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        onWeekChanged

        +
        void onWeekChanged(int curWeek)
        +
        当周次被改变时回调
        +
        +
        参数:
        +
        curWeek - 改变的周次,不一定是当前周,因为切换周次的时候有两种模式: + 仅仅切换周次、强制切换,前者不会更改当前周
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.html new file mode 100644 index 0000000..9c1777c --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/ISchedule.html @@ -0,0 +1,242 @@ + + + + + + +ISchedule + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 ISchedule

+
+
+
+
    +
  • +
    +
    +
    public interface ISchedule
    +
    与Schedule有关的接口.
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/IWeekView.OnWeekItemClickedListener.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/IWeekView.OnWeekItemClickedListener.html new file mode 100644 index 0000000..ad8ffb3 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/IWeekView.OnWeekItemClickedListener.html @@ -0,0 +1,236 @@ + + + + + + +IWeekView.OnWeekItemClickedListener + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 IWeekView.OnWeekItemClickedListener

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    OnWeekItemClickedAdapter
    +
    +
    +
    封闭接口:
    +
    IWeekView
    +
    +
    +
    +
    public static interface IWeekView.OnWeekItemClickedListener
    +
    WeekView的Item点击监听器
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        onWeekClicked

        +
        void onWeekClicked(int week)
        +
        当Item被点击时回调
        +
        +
        参数:
        +
        week - 选择的周次
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/IWeekView.OnWeekLeftClickedListener.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/IWeekView.OnWeekLeftClickedListener.html new file mode 100644 index 0000000..a2fade0 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/IWeekView.OnWeekLeftClickedListener.html @@ -0,0 +1,232 @@ + + + + + + +IWeekView.OnWeekLeftClickedListener + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 IWeekView.OnWeekLeftClickedListener

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    OnWeekLeftClickedAdapter
    +
    +
    +
    封闭接口:
    +
    IWeekView
    +
    +
    +
    +
    public static interface IWeekView.OnWeekLeftClickedListener
    +
    WeekView的左侧(设置当前周)的点击监听器
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        onWeekLeftClicked

        +
        void onWeekLeftClicked()
        +
        当"设置当前周"按钮被点击时回调
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/IWeekView.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/IWeekView.html new file mode 100644 index 0000000..d56d0f5 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/IWeekView.html @@ -0,0 +1,200 @@ + + + + + + +IWeekView + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

接口 IWeekView

+
+
+
+
    +
  • +
    +
    +
    public interface IWeekView
    +
    WeekView的相关接口.
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/OnDateBuildAapter.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnDateBuildAapter.html new file mode 100644 index 0000000..d6cf0b7 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnDateBuildAapter.html @@ -0,0 +1,587 @@ + + + + + + +OnDateBuildAapter + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

类 OnDateBuildAapter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.listener.OnDateBuildAapter
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      字段概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      字段 
      限定符和类型字段和说明
      protected floatalpha 
      protected intbackground 
      protected java.lang.String[]dateArray 
      protected android.widget.LinearLayoutlayout 
      protected android.widget.LinearLayout[]layouts 
      protected android.widget.TextView[]textViews 
      protected java.util.List<java.lang.String>weekDates 
      +
    • +
    + + + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      protected voidactiveDateBackground(int weekDay) 
      android.view.View[]getDateViews(android.view.LayoutInflater mInflate, + float monthWidth, + float perWidth, + int height) +
      获取View数组 + 被废弃,自v2.0.3起该方法无效
      +
      java.lang.String[]getStringArray() +
      返回一个长度为8的数组,第0个位置为null
      +
      protected voidinitDateBackground() 
      protected android.view.ViewonBuildDayLayout(android.view.LayoutInflater mInflate, + int pos, + int width, + int height) 
      protected android.view.ViewonBuildMonthLayout(android.view.LayoutInflater mInflate, + int width, + int height) +
      构建月份,也就是日期栏的第一格.
      +
      voidonHighLight() +
      为日期栏设置高亮时回调
      +
      voidonInit(android.widget.LinearLayout layout, + float alpha) +
      初始化方法
      +
      voidonUpdateDate(int curWeek, + int targetWeek) +
      更新日期时回调
      +
      OnDateBuildAaptersetBackground(int background) 
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      字段详细资料

      + + + +
        +
      • +

        textViews

        +
        protected android.widget.TextView[] textViews
        +
      • +
      + + + +
        +
      • +

        layouts

        +
        protected android.widget.LinearLayout[] layouts
        +
      • +
      + + + +
        +
      • +

        background

        +
        protected int background
        +
      • +
      + + + +
        +
      • +

        alpha

        +
        protected float alpha
        +
      • +
      + + + +
        +
      • +

        dateArray

        +
        protected java.lang.String[] dateArray
        +
      • +
      + + + +
        +
      • +

        weekDates

        +
        protected java.util.List<java.lang.String> weekDates
        +
      • +
      + + + +
        +
      • +

        layout

        +
        protected android.widget.LinearLayout layout
        +
      • +
      +
    • +
    + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        OnDateBuildAapter

        +
        public OnDateBuildAapter()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + + + + + + + + + +
        +
      • +

        getDateViews

        +
        public android.view.View[] getDateViews(android.view.LayoutInflater mInflate,
        +                                        float monthWidth,
        +                                        float perWidth,
        +                                        int height)
        +
        从接口复制的说明: ISchedule.OnDateBuildListener
        +
        获取View数组 + 被废弃,自v2.0.3起该方法无效
        +
        +
        指定者:
        +
        getDateViews 在接口中 ISchedule.OnDateBuildListener
        +
        参数:
        +
        mInflate - 转换器
        +
        monthWidth - 月份宽度px
        +
        perWidth - 日期每项宽度px
        +
        height - 默认的日期栏高度
        +
        返回:
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        onBuildMonthLayout

        +
        protected android.view.View onBuildMonthLayout(android.view.LayoutInflater mInflate,
        +                                               int width,
        +                                               int height)
        +
        构建月份,也就是日期栏的第一格.
        + 宽度、高度均为px
        +
        +
        参数:
        +
        mInflate -
        +
        width - 宽度
        +
        height - 默认高度
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        onBuildDayLayout

        +
        protected android.view.View onBuildDayLayout(android.view.LayoutInflater mInflate,
        +                                             int pos,
        +                                             int width,
        +                                             int height)
        +
      • +
      + + + +
        +
      • +

        getStringArray

        +
        public java.lang.String[] getStringArray()
        +
        返回一个长度为8的数组,第0个位置为null
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        initDateBackground

        +
        protected void initDateBackground()
        +
      • +
      + + + +
        +
      • +

        activeDateBackground

        +
        protected void activeDateBackground(int weekDay)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/OnFlaglayoutClickAdapter.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnFlaglayoutClickAdapter.html new file mode 100644 index 0000000..9be9288 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnFlaglayoutClickAdapter.html @@ -0,0 +1,289 @@ + + + + + + +OnFlaglayoutClickAdapter + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

类 OnFlaglayoutClickAdapter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.listener.OnFlaglayoutClickAdapter
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      方法概要

      + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      voidonFlaglayoutClick(int day, + int start) +
      当旗标布局被点击时回调
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        OnFlaglayoutClickAdapter

        +
        public OnFlaglayoutClickAdapter()
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/OnItemBuildAdapter.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnItemBuildAdapter.html new file mode 100644 index 0000000..1bf64bf --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnItemBuildAdapter.html @@ -0,0 +1,325 @@ + + + + + + +OnItemBuildAdapter + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

类 OnItemBuildAdapter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.listener.OnItemBuildAdapter
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      java.lang.StringgetItemText(Schedule schedule, + boolean isThisWeek) +
      构建课程项的文本时回调.
      +
      voidonItemUpdate(android.widget.FrameLayout layout, + android.widget.TextView textView, + android.widget.TextView countTextView, + Schedule schedule, + android.graphics.drawable.GradientDrawable gd) +
      课程项构建完成后回调.
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        OnItemBuildAdapter

        +
        public OnItemBuildAdapter()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + + + + + +
        +
      • +

        onItemUpdate

        +
        public void onItemUpdate(android.widget.FrameLayout layout,
        +                         android.widget.TextView textView,
        +                         android.widget.TextView countTextView,
        +                         Schedule schedule,
        +                         android.graphics.drawable.GradientDrawable gd)
        +
        从接口复制的说明: ISchedule.OnItemBuildListener
        +
        课程项构建完成后回调.
        +
        +
        指定者:
        +
        onItemUpdate 在接口中 ISchedule.OnItemBuildListener
        +
        参数:
        +
        layout - 课程项的帧布局
        +
        textView - 课程项的内容区域
        +
        countTextView - 课程项的角标
        +
        schedule - 课程实体
        +
        gd - 内容区域的背景是使用GradientDrawable来设置的,你可以二次设置
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/OnItemClickAdapter.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnItemClickAdapter.html new file mode 100644 index 0000000..7483e2c --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnItemClickAdapter.html @@ -0,0 +1,287 @@ + + + + + + +OnItemClickAdapter + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

类 OnItemClickAdapter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.listener.OnItemClickAdapter
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      方法概要

      + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      voidonItemClick(android.view.View v, + java.util.List<Schedule> scheduleList) +
      当课程项被点击时回调
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/OnItemLongClickAdapter.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnItemLongClickAdapter.html new file mode 100644 index 0000000..b381cdb --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnItemLongClickAdapter.html @@ -0,0 +1,290 @@ + + + + + + +OnItemLongClickAdapter + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

类 OnItemLongClickAdapter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.listener.OnItemLongClickAdapter
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      方法概要

      + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      voidonLongClick(android.view.View v, + int day, + int start) +
      当课程项被点击时回调
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        OnItemLongClickAdapter

        +
        public OnItemLongClickAdapter()
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/OnScrollViewBuildAdapter.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnScrollViewBuildAdapter.html new file mode 100644 index 0000000..07f7eda --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnScrollViewBuildAdapter.html @@ -0,0 +1,285 @@ + + + + + + +OnScrollViewBuildAdapter + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

类 OnScrollViewBuildAdapter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.listener.OnScrollViewBuildAdapter
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      方法概要

      + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      android.view.ViewgetScrollView(android.view.LayoutInflater mInflate) +
      构建滚动布局时回调
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/OnSlideBuildAdapter.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnSlideBuildAdapter.html new file mode 100644 index 0000000..44d9d50 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnSlideBuildAdapter.html @@ -0,0 +1,575 @@ + + + + + + +OnSlideBuildAdapter + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

类 OnSlideBuildAdapter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.listener.OnSlideBuildAdapter
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      字段详细资料

      + + + +
        +
      • +

        times

        +
        protected java.lang.String[] times
        +
      • +
      + + + +
        +
      • +

        textColor

        +
        protected int textColor
        +
      • +
      + + + +
        +
      • +

        textSize

        +
        protected float textSize
        +
      • +
      + + + +
        +
      • +

        timeTextSize

        +
        protected float timeTextSize
        +
      • +
      + + + +
        +
      • +

        timeTextColor

        +
        protected int timeTextColor
        +
      • +
      + + + +
        +
      • +

        background

        +
        protected int background
        +
      • +
      + + + +
        +
      • +

        alpha

        +
        protected float alpha
        +
      • +
      +
    • +
    + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        OnSlideBuildAdapter

        +
        public OnSlideBuildAdapter()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        setTimes

        +
        public OnSlideBuildAdapter setTimes(java.lang.String[] times)
        +
        设置时刻数组
        +
        +
        参数:
        +
        times -
        +
        返回:
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getTimes

        +
        public java.lang.String[] getTimes()
        +
        获取时刻数组
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        setTextColor

        +
        public OnSlideBuildAdapter setTextColor(int textColor)
        +
        设置节次文本颜色
        +
        +
        参数:
        +
        textColor - 指定颜色
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        setTextSize

        +
        public OnSlideBuildAdapter setTextSize(float textSize)
        +
        设置节次文本的大小
        +
        +
        参数:
        +
        textSize - 指定字号
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        setTimeTextColor

        +
        public OnSlideBuildAdapter setTimeTextColor(int timeTextColor)
        +
        设置节次时间的文本颜色
        +
        +
        参数:
        +
        timeTextColor - 颜色
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        setTimeTextSize

        +
        public OnSlideBuildAdapter setTimeTextSize(float timeTextSize)
        +
        设置节次时间的文本大小
        +
        +
        参数:
        +
        timeTextSize - 字号
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getView

        +
        public android.view.View getView(int pos,
        +                                 android.view.LayoutInflater inflater,
        +                                 int itemHeight,
        +                                 int marTop)
        +
        从接口复制的说明: ISchedule.OnSlideBuildListener
        +
        构建每项
        +
        +
        指定者:
        +
        getView 在接口中 ISchedule.OnSlideBuildListener
        +
        参数:
        +
        pos - 位置
        +
        inflater - 转换器
        +
        itemHeight - 课程项的高度
        +
        marTop - 课程项的marTop值
        +
        返回:
        +
        构建好的一个侧边项
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/OnSpaceItemClickAdapter.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnSpaceItemClickAdapter.html new file mode 100644 index 0000000..5b81565 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnSpaceItemClickAdapter.html @@ -0,0 +1,427 @@ + + + + + + +OnSpaceItemClickAdapter + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

类 OnSpaceItemClickAdapter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      字段概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      字段 
      限定符和类型字段和说明
      protected android.widget.LinearLayoutflagLayout 
      protected intitemHeight 
      protected intitemWidth 
      protected intmarLeft 
      protected intmarTop 
      protected intmonthWidth 
      +
    • +
    + + + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      voidonInit(android.widget.LinearLayout flagLayout, + int monthWidth, + int itemWidth, + int itemHeight, + int marTop, + int marLeft) +
      初始化方法
      +
      voidonSpaceItemClick(int day, + int start) +
      当课程项被点击时回调
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      字段详细资料

      + + + +
        +
      • +

        flagLayout

        +
        protected android.widget.LinearLayout flagLayout
        +
      • +
      + + + +
        +
      • +

        itemHeight

        +
        protected int itemHeight
        +
      • +
      + + + +
        +
      • +

        itemWidth

        +
        protected int itemWidth
        +
      • +
      + + + +
        +
      • +

        monthWidth

        +
        protected int monthWidth
        +
      • +
      + + + +
        +
      • +

        marTop

        +
        protected int marTop
        +
      • +
      + + + +
        +
      • +

        marLeft

        +
        protected int marLeft
        +
      • +
      +
    • +
    + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        OnSpaceItemClickAdapter

        +
        public OnSpaceItemClickAdapter()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + + + + + +
        +
      • +

        onInit

        +
        public void onInit(android.widget.LinearLayout flagLayout,
        +                   int monthWidth,
        +                   int itemWidth,
        +                   int itemHeight,
        +                   int marTop,
        +                   int marLeft)
        +
        从接口复制的说明: ISchedule.OnSpaceItemClickListener
        +
        初始化方法
        +
        +
        指定者:
        +
        onInit 在接口中 ISchedule.OnSpaceItemClickListener
        +
        参数:
        +
        flagLayout - 一个指示器的布局
        +
        monthWidth - 月份列宽度
        +
        itemWidth - 课程项宽度,itemWidth:是包含了边距的,设置宽度时所以需要减去边距
        +
        itemHeight - 课程项高度
        +
        marTop - 外边距
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/OnWeekChangedAdapter.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnWeekChangedAdapter.html new file mode 100644 index 0000000..64494a6 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnWeekChangedAdapter.html @@ -0,0 +1,286 @@ + + + + + + +OnWeekChangedAdapter + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

类 OnWeekChangedAdapter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.listener.OnWeekChangedAdapter
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      方法概要

      + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      voidonWeekChanged(int curWeek) +
      当周次被改变时回调
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        OnWeekChangedAdapter

        +
        public OnWeekChangedAdapter()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        onWeekChanged

        +
        public void onWeekChanged(int curWeek)
        +
        从接口复制的说明: ISchedule.OnWeekChangedListener
        +
        当周次被改变时回调
        +
        +
        指定者:
        +
        onWeekChanged 在接口中 ISchedule.OnWeekChangedListener
        +
        参数:
        +
        curWeek - 改变的周次,不一定是当前周,因为切换周次的时候有两种模式: + 仅仅切换周次、强制切换,前者不会更改当前周
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/OnWeekItemClickedAdapter.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnWeekItemClickedAdapter.html new file mode 100644 index 0000000..a1cff93 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnWeekItemClickedAdapter.html @@ -0,0 +1,286 @@ + + + + + + +OnWeekItemClickedAdapter + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

类 OnWeekItemClickedAdapter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.listener.OnWeekItemClickedAdapter
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      方法概要

      + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      voidonWeekClicked(int curWeek) +
      当Item被点击时回调
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/OnWeekLeftClickedAdapter.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnWeekLeftClickedAdapter.html new file mode 100644 index 0000000..017c1a7 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/OnWeekLeftClickedAdapter.html @@ -0,0 +1,284 @@ + + + + + + +OnWeekLeftClickedAdapter + + + + + + + + + + + + +
+
com.zhuangfei.timetable.listener
+

类 OnWeekLeftClickedAdapter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.listener.OnWeekLeftClickedAdapter
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      方法概要

      + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      voidonWeekLeftClicked() +
      当"设置当前周"按钮被点击时回调
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/package-frame.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/package-frame.html new file mode 100644 index 0000000..df11f77 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/package-frame.html @@ -0,0 +1,47 @@ + + + + + + +com.zhuangfei.timetable.listener + + + + + +

com.zhuangfei.timetable.listener

+ + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/package-summary.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/package-summary.html new file mode 100644 index 0000000..6617847 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/package-summary.html @@ -0,0 +1,300 @@ + + + + + + +com.zhuangfei.timetable.listener + + + + + + + + + + + +
+

程序包 com.zhuangfei.timetable.listener

+
+
该包中存放接口以及默认的实现类
+
+

请参阅: 说明

+
+
+ + + + +

程序包com.zhuangfei.timetable.listener的说明

+
该包中存放接口以及默认的实现类
+
+ + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/listener/package-tree.html b/docs/v2.0.3/com/zhuangfei/timetable/listener/package-tree.html new file mode 100644 index 0000000..c3f56b0 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/listener/package-tree.html @@ -0,0 +1,162 @@ + + + + + + +com.zhuangfei.timetable.listener 类分层结构 + + + + + + + + + + + +
+

程序包com.zhuangfei.timetable.listener的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +

接口分层结构

+ +
+ + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/model/Schedule.html b/docs/v2.0.3/com/zhuangfei/timetable/model/Schedule.html new file mode 100644 index 0000000..b35de79 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/model/Schedule.html @@ -0,0 +1,560 @@ + + + + + + +Schedule + + + + + + + + + + + + +
+
com.zhuangfei.timetable.model
+

类 Schedule

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.model.Schedule
    • +
    +
  • +
+
+
    +
  • +
    +
    所有已实现的接口:
    +
    java.io.Serializable, java.lang.Comparable<Schedule>
    +
    +
    +
    +
    public class Schedule
    +extends java.lang.Object
    +implements java.io.Serializable, java.lang.Comparable<Schedule>
    +
    课程实体类
    + 1.增加了extras,可以保存一些自己需要的东西
    +
    +
    另请参阅:
    +
    序列化表格
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器概要

      + + + + + + + + + + + +
      构造器 
      构造器和说明
      Schedule() 
      Schedule(java.lang.String name, + java.lang.String room, + java.lang.String teacher, + java.util.List<java.lang.Integer> weekList, + int start, + int step, + int day, + int colorRandom) 
      +
    • +
    + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      intcompareTo(Schedule o) 
      intgetColorRandom() 
      intgetDay() 
      java.util.Map<java.lang.String,java.lang.Object>getExtras() 
      java.lang.StringgetName() 
      java.lang.StringgetRoom() 
      intgetStart() 
      intgetStep() 
      java.lang.StringgetTeacher() 
      java.util.List<java.lang.Integer>getWeekList() 
      voidputExtras(java.lang.String key, + java.lang.Object val) 
      voidsetColorRandom(int colorRandom) 
      voidsetDay(int day) 
      voidsetExtras(java.util.Map<java.lang.String,java.lang.Object> map) 
      voidsetName(java.lang.String name) 
      voidsetRoom(java.lang.String room) 
      voidsetStart(int start) 
      voidsetStep(int step) 
      voidsetTeacher(java.lang.String teacher) 
      voidsetWeekList(java.util.List<java.lang.Integer> weekList) 
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        Schedule

        +
        public Schedule(java.lang.String name,
        +                java.lang.String room,
        +                java.lang.String teacher,
        +                java.util.List<java.lang.Integer> weekList,
        +                int start,
        +                int step,
        +                int day,
        +                int colorRandom)
        +
      • +
      + + + +
        +
      • +

        Schedule

        +
        public Schedule()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        getExtras

        +
        public java.util.Map<java.lang.String,java.lang.Object> getExtras()
        +
      • +
      + + + +
        +
      • +

        setExtras

        +
        public void setExtras(java.util.Map<java.lang.String,java.lang.Object> map)
        +
      • +
      + + + +
        +
      • +

        putExtras

        +
        public void putExtras(java.lang.String key,
        +                      java.lang.Object val)
        +
      • +
      + + + +
        +
      • +

        getName

        +
        public java.lang.String getName()
        +
      • +
      + + + +
        +
      • +

        setName

        +
        public void setName(java.lang.String name)
        +
      • +
      + + + +
        +
      • +

        getRoom

        +
        public java.lang.String getRoom()
        +
      • +
      + + + +
        +
      • +

        setRoom

        +
        public void setRoom(java.lang.String room)
        +
      • +
      + + + +
        +
      • +

        getTeacher

        +
        public java.lang.String getTeacher()
        +
      • +
      + + + +
        +
      • +

        setTeacher

        +
        public void setTeacher(java.lang.String teacher)
        +
      • +
      + + + +
        +
      • +

        setWeekList

        +
        public void setWeekList(java.util.List<java.lang.Integer> weekList)
        +
      • +
      + + + +
        +
      • +

        getWeekList

        +
        public java.util.List<java.lang.Integer> getWeekList()
        +
      • +
      + + + +
        +
      • +

        getStart

        +
        public int getStart()
        +
      • +
      + + + +
        +
      • +

        setStart

        +
        public void setStart(int start)
        +
      • +
      + + + +
        +
      • +

        getStep

        +
        public int getStep()
        +
      • +
      + + + +
        +
      • +

        setStep

        +
        public void setStep(int step)
        +
      • +
      + + + +
        +
      • +

        getDay

        +
        public int getDay()
        +
      • +
      + + + +
        +
      • +

        setDay

        +
        public void setDay(int day)
        +
      • +
      + + + +
        +
      • +

        getColorRandom

        +
        public int getColorRandom()
        +
      • +
      + + + +
        +
      • +

        setColorRandom

        +
        public void setColorRandom(int colorRandom)
        +
      • +
      + + + +
        +
      • +

        compareTo

        +
        public int compareTo(Schedule o)
        +
        +
        指定者:
        +
        compareTo 在接口中 java.lang.Comparable<Schedule>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/model/ScheduleColorPool.html b/docs/v2.0.3/com/zhuangfei/timetable/model/ScheduleColorPool.html new file mode 100644 index 0000000..771b236 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/model/ScheduleColorPool.html @@ -0,0 +1,506 @@ + + + + + + +ScheduleColorPool + + + + + + + + + + + + +
+
com.zhuangfei.timetable.model
+

类 ScheduleColorPool

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.model.ScheduleColorPool
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ScheduleColorPool
    +extends java.lang.Object
    +
    颜色池,管理课程项可挑选的颜色
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器概要

      + + + + + + + + +
      构造器 
      构造器和说明
      ScheduleColorPool(android.content.Context context) 
      +
    • +
    + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      ScheduleColorPooladd(int... colorIds) +
      在颜色池中添加一些自定义的颜色
      +
      ScheduleColorPooladdAll(java.util.Collection<? extends java.lang.Integer> ownColorPool) +
      将指定集合中的颜色加入到颜色池中
      +
      ScheduleColorPoolclear() +
      清空颜色池,清空默认颜色
      +
      intgetColor(int i) +
      根据索引获取颜色,索引越界默认返回 Color.GRAY
      +
      intgetColorAuto(int i) +
      使用模运算根据索引从颜色池中获取颜色, + 如果i<0,转换为正数, + 否则:重新计算索引j=i mod size
      +
      intgetColorAutoWithAlpha(int random, + float alpha) +
      从颜色池中取指定透明度的颜色
      +
      java.util.List<java.lang.Integer>getPoolInstance() +
      得到颜色池的实例,即List集合
      +
      intgetUselessColor() +
      获取非本周课程颜色
      +
      intgetUselessColorWithAlpha(float alpha) +
      获取非本周课程颜色
      +
      ScheduleColorPoolreset() +
      重置,先在池子里添加一些默认的课程项颜色
      +
      ScheduleColorPoolsetUselessColor(int uselessColor) +
      设置非本周课程颜色
      +
      intsize() +
      颜色池的大小
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        ScheduleColorPool

        +
        public ScheduleColorPool(android.content.Context context)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        getUselessColor

        +
        public int getUselessColor()
        +
        获取非本周课程颜色
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getUselessColorWithAlpha

        +
        public int getUselessColorWithAlpha(float alpha)
        +
        获取非本周课程颜色
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        setUselessColor

        +
        public ScheduleColorPool setUselessColor(int uselessColor)
        +
        设置非本周课程颜色
        +
        +
        参数:
        +
        uselessColor - 非本周课程的颜色
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getPoolInstance

        +
        public java.util.List<java.lang.Integer> getPoolInstance()
        +
        得到颜色池的实例,即List集合
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getColorAutoWithAlpha

        +
        public int getColorAutoWithAlpha(int random,
        +                                 float alpha)
        +
        从颜色池中取指定透明度的颜色
        +
        +
        参数:
        +
        random -
        +
        alpha -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getColor

        +
        public int getColor(int i)
        +
        根据索引获取颜色,索引越界默认返回 Color.GRAY
        +
        +
        参数:
        +
        i - 索引
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getColorAuto

        +
        public int getColorAuto(int i)
        +
        使用模运算根据索引从颜色池中获取颜色, + 如果i<0,转换为正数, + 否则:重新计算索引j=i mod size
        +
        +
        参数:
        +
        i - 索引
        +
        返回:
        +
        颜色
        +
        +
      • +
      + + + +
        +
      • +

        addAll

        +
        public ScheduleColorPool addAll(java.util.Collection<? extends java.lang.Integer> ownColorPool)
        +
        将指定集合中的颜色加入到颜色池中
        +
        +
        参数:
        +
        ownColorPool - 集合
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        size

        +
        public int size()
        +
        颜色池的大小
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        clear

        +
        public ScheduleColorPool clear()
        +
        清空颜色池,清空默认颜色
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        add

        +
        public ScheduleColorPool add(int... colorIds)
        +
        在颜色池中添加一些自定义的颜色
        +
        +
        参数:
        +
        colorIds - 多个颜色
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        reset

        +
        public ScheduleColorPool reset()
        +
        重置,先在池子里添加一些默认的课程项颜色
        +
        +
        返回:
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/model/ScheduleEnable.html b/docs/v2.0.3/com/zhuangfei/timetable/model/ScheduleEnable.html new file mode 100644 index 0000000..a716817 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/model/ScheduleEnable.html @@ -0,0 +1,229 @@ + + + + + + +ScheduleEnable + + + + + + + + + + + + +
+
com.zhuangfei.timetable.model
+

接口 ScheduleEnable

+
+
+
+
    +
  • +
    +
    +
    public interface ScheduleEnable
    +
    该接口定义数据转换的规范, + 用户自定义课程实体类需要实现该接口以及实现其中的转换方法, + 在设置数据源时可以使用自定义的课程实体,但是必须实现该接口
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        getSchedule

        +
        Schedule getSchedule()
        +
        获取Schedule
        +
        +
        返回:
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/model/ScheduleSupport.html b/docs/v2.0.3/com/zhuangfei/timetable/model/ScheduleSupport.html new file mode 100644 index 0000000..ce16ebe --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/model/ScheduleSupport.html @@ -0,0 +1,600 @@ + + + + + + +ScheduleSupport + + + + + + + + + + + + +
+
com.zhuangfei.timetable.model
+

类 ScheduleSupport

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.model.ScheduleSupport
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ScheduleSupport
    +extends java.lang.Object
    +
    课程表的工具包,主要提供几个便捷的方法
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 静态方法 具体方法 
      限定符和类型方法和说明
      static SchedulefindRealSubject(int start, + int curWeek, + java.util.List<Schedule> scheduleList) +
      返回index处的课程,注意他的真实位置可能并不是index
      +
      static java.util.List<Schedule>findSubjects(Schedule subject, + java.util.List<Schedule> data) +
      在data中查找与subject的start相同的课程集合
      +
      static java.util.List<Schedule>fliterSchedule(java.util.List<Schedule> data, + int curWeek, + boolean isShowNotCurWeek) +
      根据当前周过滤课程,获取本周有效的课程(忽略重叠的)
      +
      static java.util.List<Schedule>getAllSubjectsWithDay(java.util.List<Schedule> scheduleList, + int day) +
      获取某天的所有课程
      +
      static java.util.List<Schedule>getColorReflect(java.util.List<Schedule> schedules) +
      模拟分配颜色,将源数据的colorRandom属性赋值, + 然后根据该属性值在颜色池中查找颜色即可
      +
      static java.util.List<java.lang.String>getDateStringFromWeek(int curWeek, + int targetWeek) +
      根据需要算的周数和当前周数计算日期, + 用于周次切换时对日期的更新
      +
      static java.util.List<Schedule>getHaveSubjectsWithDay(java.util.List<Schedule> scheduleList, + int curWeek, + int day) +
      获取某天有课的课程
      +
      static intgetPx(android.content.Context context, + int dp) +
      内部使用的是:context.getResources().getDimensionPixelSize(dp);
      +
      static java.util.List<java.lang.String>getWeekDate() +
      获取本周的周一-周日的所有日期
      +
      static booleanisThisWeek(Schedule subject, + int cur_week) +
      判断该课是否为本周的
      +
      static voidsortList(java.util.List<Schedule> data) 
      static voidsortList(java.util.List<Schedule>[] data) +
      按照上课节次排序
      +
      static java.util.List<Schedule>[]splitSubjectWithDay(java.util.List<Schedule> dataSource) +
      将源数据拆分为数组的七个元素,每个元素为一个集合, + 依次为周一-周日的课程集合
      +
      static inttimeTransfrom(java.lang.String startTime) +
      根据开学时间计算当前周
      +
      static java.util.List<Schedule>transform(java.util.List<? extends ScheduleEnable> dataSource) +
      转换,将自定义类型转换为List
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        ScheduleSupport

        +
        public ScheduleSupport()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        getDateStringFromWeek

        +
        public static java.util.List<java.lang.String> getDateStringFromWeek(int curWeek,
        +                                                                     int targetWeek)
        +
        根据需要算的周数和当前周数计算日期, + 用于周次切换时对日期的更新
        +
        +
        参数:
        +
        targetWeek - 需要算的周数
        +
        curWeek - 当前周数
        +
        返回:
        +
        当周日期集合,共8个元素,第一个为月份(高亮日期的月份),之后7个为周一至周日的日期
        +
        +
      • +
      + + + +
        +
      • +

        getWeekDate

        +
        public static java.util.List<java.lang.String> getWeekDate()
        +
        获取本周的周一-周日的所有日期
        +
        +
        返回:
        +
        8个元素的集合,第一个为月份,之后7个依次为周一-周日
        +
        +
      • +
      + + + +
        +
      • +

        timeTransfrom

        +
        public static int timeTransfrom(java.lang.String startTime)
        +
        根据开学时间计算当前周
        +
        +
        参数:
        +
        startTime - 满足"yyyy-MM-dd HH:mm:ss"模式的字符串
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getColorReflect

        +
        public static java.util.List<Schedule> getColorReflect(java.util.List<Schedule> schedules)
        +
        模拟分配颜色,将源数据的colorRandom属性赋值, + 然后根据该属性值在颜色池中查找颜色即可
        +
        +
        参数:
        +
        schedules - 源数据
        +
        返回:
        +
        colorRandom属性已有值
        +
        +
      • +
      + + + +
        +
      • +

        getPx

        +
        public static int getPx(android.content.Context context,
        +                        int dp)
        +
        内部使用的是:context.getResources().getDimensionPixelSize(dp);
        +
        +
        参数:
        +
        context -
        +
        dp -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        transform

        +
        public static java.util.List<Schedule> transform(java.util.List<? extends ScheduleEnable> dataSource)
        +
        转换,将自定义类型转换为List
        +
        +
        参数:
        +
        dataSource - 源数据集合
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        splitSubjectWithDay

        +
        public static java.util.List<Schedule>[] splitSubjectWithDay(java.util.List<Schedule> dataSource)
        +
        将源数据拆分为数组的七个元素,每个元素为一个集合, + 依次为周一-周日的课程集合
        +
        +
        参数:
        +
        dataSource - 源数据
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getHaveSubjectsWithDay

        +
        public static java.util.List<Schedule> getHaveSubjectsWithDay(java.util.List<Schedule> scheduleList,
        +                                                              int curWeek,
        +                                                              int day)
        +
        获取某天有课的课程
        +
        +
        参数:
        +
        scheduleList - 数据集合
        +
        curWeek - 当前周,以1开始
        +
        day - 星期几,0:周一,1:周二,依次类推..周日:6
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getAllSubjectsWithDay

        +
        public static java.util.List<Schedule> getAllSubjectsWithDay(java.util.List<Schedule> scheduleList,
        +                                                             int day)
        +
        获取某天的所有课程
        +
        +
        参数:
        +
        scheduleList - 数据集合
        +
        day - 星期几,0:周一,1:周二,依次类推..周日:6
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        findSubjects

        +
        public static java.util.List<Schedule> findSubjects(Schedule subject,
        +                                                    java.util.List<Schedule> data)
        +
        在data中查找与subject的start相同的课程集合
        +
        +
        参数:
        +
        subject -
        +
        data -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        findRealSubject

        +
        public static Schedule findRealSubject(int start,
        +                                       int curWeek,
        +                                       java.util.List<Schedule> scheduleList)
        +
        返回index处的课程,注意他的真实位置可能并不是index
        +
        +
        参数:
        +
        curWeek -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        sortList

        +
        public static void sortList(java.util.List<Schedule>[] data)
        +
        按照上课节次排序
        +
        +
        参数:
        +
        data -
        +
        +
      • +
      + + + +
        +
      • +

        sortList

        +
        public static void sortList(java.util.List<Schedule> data)
        +
      • +
      + + + +
        +
      • +

        isThisWeek

        +
        public static boolean isThisWeek(Schedule subject,
        +                                 int cur_week)
        +
        判断该课是否为本周的
        +
        +
        参数:
        +
        cur_week -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        fliterSchedule

        +
        public static java.util.List<Schedule> fliterSchedule(java.util.List<Schedule> data,
        +                                                      int curWeek,
        +                                                      boolean isShowNotCurWeek)
        +
        根据当前周过滤课程,获取本周有效的课程(忽略重叠的)
        +
        +
        参数:
        +
        data -
        +
        curWeek -
        +
        返回:
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/model/WeekViewEnable.html b/docs/v2.0.3/com/zhuangfei/timetable/model/WeekViewEnable.html new file mode 100644 index 0000000..2f2817f --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/model/WeekViewEnable.html @@ -0,0 +1,410 @@ + + + + + + +WeekViewEnable + + + + + + + + + + + + +
+
com.zhuangfei.timetable.model
+

接口 WeekViewEnable<T>

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    WeekView
    +
    +
    +
    +
    public interface WeekViewEnable<T>
    +
    如果需要自定义周次选择栏,请实现该接口, + 它仅仅提供一个规范,可用可不用 + Created by Liu ZhuangFei on 2018/7/28.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 实例方法 抽象方法 
      限定符和类型方法和说明
      TcurWeek(int curWeek) +
      设置当前周
      +
      Tdata(java.util.List<Schedule> scheduleList) +
      设置数据源
      +
      java.util.List<Schedule>dataSource() +
      获取数据源
      +
      TisShow(boolean isShow) +
      设置控件的可见性
      +
      booleanisShowing() +
      判断该控件是否显示
      +
      intitemCount() +
      获取项数
      +
      TitemCount(int count) +
      设置项数
      +
      TshowView() +
      初次构建时调用,显示周次选择布局
      +
      Tsource(java.util.List<? extends ScheduleEnable> list) +
      设置数据源
      +
      TupdateView() +
      当前周被改变后可以调用该方式修正一下底部的文本
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        curWeek

        +
        T curWeek(int curWeek)
        +
        设置当前周
        +
        +
        参数:
        +
        curWeek -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        itemCount

        +
        T itemCount(int count)
        +
        设置项数
        +
        +
        参数:
        +
        count -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        itemCount

        +
        int itemCount()
        +
        获取项数
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        source

        +
        T source(java.util.List<? extends ScheduleEnable> list)
        +
        设置数据源
        +
        +
        参数:
        +
        list -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        data

        +
        T data(java.util.List<Schedule> scheduleList)
        +
        设置数据源
        +
        +
        参数:
        +
        scheduleList -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        dataSource

        +
        java.util.List<Schedule> dataSource()
        +
        获取数据源
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        showView

        +
        T showView()
        +
        初次构建时调用,显示周次选择布局
        +
      • +
      + + + +
        +
      • +

        updateView

        +
        T updateView()
        +
        当前周被改变后可以调用该方式修正一下底部的文本
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        isShow

        +
        T isShow(boolean isShow)
        +
        设置控件的可见性
        +
        +
        参数:
        +
        isShow - true:显示,false:隐藏
        +
        +
      • +
      + + + +
        +
      • +

        isShowing

        +
        boolean isShowing()
        +
        判断该控件是否显示
        +
        +
        返回:
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/model/package-frame.html b/docs/v2.0.3/com/zhuangfei/timetable/model/package-frame.html new file mode 100644 index 0000000..32ca1d7 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/model/package-frame.html @@ -0,0 +1,28 @@ + + + + + + +com.zhuangfei.timetable.model + + + + + +

com.zhuangfei.timetable.model

+ + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/model/package-summary.html b/docs/v2.0.3/com/zhuangfei/timetable/model/package-summary.html new file mode 100644 index 0000000..a9a7156 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/model/package-summary.html @@ -0,0 +1,192 @@ + + + + + + +com.zhuangfei.timetable.model + + + + + + + + + + + +
+

程序包 com.zhuangfei.timetable.model

+
+
该包存放与Schedule有关的模型类
+
+

请参阅: 说明

+
+
+
    +
  • + + + + + + + + + + + + + + + + +
    接口概要 
    接口说明
    ScheduleEnable +
    该接口定义数据转换的规范, + 用户自定义课程实体类需要实现该接口以及实现其中的转换方法, + 在设置数据源时可以使用自定义的课程实体,但是必须实现该接口
    +
    WeekViewEnable<T> +
    如果需要自定义周次选择栏,请实现该接口, + 它仅仅提供一个规范,可用可不用 + Created by Liu ZhuangFei on 2018/7/28.
    +
    +
  • +
  • + + + + + + + + + + + + + + + + + + + + +
    类概要 
    说明
    Schedule +
    课程实体类
    + 1.增加了extras,可以保存一些自己需要的东西
    +
    ScheduleColorPool +
    颜色池,管理课程项可挑选的颜色
    +
    ScheduleSupport +
    课程表的工具包,主要提供几个便捷的方法
    +
    +
  • +
+ + + +

程序包com.zhuangfei.timetable.model的说明

+
该包存放与Schedule有关的模型类
+
+ + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/model/package-tree.html b/docs/v2.0.3/com/zhuangfei/timetable/model/package-tree.html new file mode 100644 index 0000000..5d01d3c --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/model/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +com.zhuangfei.timetable.model 类分层结构 + + + + + + + + + + + +
+

程序包com.zhuangfei.timetable.model的分层结构

+程序包分层结构: + +
+
+

类分层结构

+
    +
  • java.lang.Object + +
  • +
+

接口分层结构

+ +
+ + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/operater/AbsOperater.html b/docs/v2.0.3/com/zhuangfei/timetable/operater/AbsOperater.html new file mode 100644 index 0000000..43af6f2 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/operater/AbsOperater.html @@ -0,0 +1,373 @@ + + + + + + +AbsOperater + + + + + + + + + + + + +
+
com.zhuangfei.timetable.operater
+

类 AbsOperater

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.operater.AbsOperater
    • +
    +
  • +
+
+
    +
  • +
    +
    直接已知子类:
    +
    SimpleOperater
    +
    +
    +
    +
    public abstract class AbsOperater
    +extends java.lang.Object
    +
    抽象的业务逻辑 + Created by Liu ZhuangFei on 2018/9/2.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        AbsOperater

        +
        public AbsOperater()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        init

        +
        public void init(android.content.Context context,
        +                 android.util.AttributeSet attrs,
        +                 TimetableView view)
        +
      • +
      + + + +
        +
      • +

        showView

        +
        public void showView()
        +
      • +
      + + + +
        +
      • +

        updateDateView

        +
        public void updateDateView()
        +
      • +
      + + + +
        +
      • +

        updateSlideView

        +
        public void updateSlideView()
        +
      • +
      + + + +
        +
      • +

        changeWeek

        +
        public void changeWeek(int week,
        +                       boolean isCurWeek)
        +
      • +
      + + + +
        +
      • +

        getFlagLayout

        +
        public android.widget.LinearLayout getFlagLayout()
        +
      • +
      + + + +
        +
      • +

        getDateLayout

        +
        public android.widget.LinearLayout getDateLayout()
        +
      • +
      + + + +
        +
      • +

        setWeekendsVisiable

        +
        public void setWeekendsVisiable(boolean isShow)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/operater/SimpleOperater.html b/docs/v2.0.3/com/zhuangfei/timetable/operater/SimpleOperater.html new file mode 100644 index 0000000..08b6546 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/operater/SimpleOperater.html @@ -0,0 +1,547 @@ + + + + + + +SimpleOperater + + + + + + + + + + + + +
+
com.zhuangfei.timetable.operater
+

类 SimpleOperater

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      构造器概要

      + + + + + + + + +
      构造器 
      构造器和说明
      SimpleOperater() 
      +
    • +
    + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      voidchangeWeek(int week, + boolean isCurWeek) +
      切换周次
      +
      protected booleancheckPosition(int day, + int start) +
      判断位置是否有课
      +
      android.widget.LinearLayoutgetDateLayout() 
      android.widget.LinearLayoutgetFlagLayout() +
      获取旗标布局
      +
      protected floatgetPerWidth() 
      voidinit(android.content.Context context, + android.util.AttributeSet attrs, + TimetableView view) 
      protected voidinitAttr(android.util.AttributeSet attrs) +
      获取自定义属性
      +
      protected voidinitPanel() +
      初始化panel并为panel设置事件监听
      +
      voidnewSlideView(android.widget.LinearLayout slidelayout) +
      构建侧边栏
      +
      protected voidonPanelClicked(android.view.View view, + float y) +
      点击panel时的事件响应
      +
      voidsetWeekendsVisiable(boolean isShow) +
      设置周末的可见性
      +
      voidshowView() +
      绘制课程表
      +
      voidupdateDateView() +
      更新日期栏
      +
      voidupdateSlideView() +
      侧边栏更新
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        SimpleOperater

        +
        public SimpleOperater()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        init

        +
        public void init(android.content.Context context,
        +                 android.util.AttributeSet attrs,
        +                 TimetableView view)
        +
        +
        覆盖:
        +
        init 在类中 AbsOperater
        +
        +
      • +
      + + + +
        +
      • +

        initAttr

        +
        protected void initAttr(android.util.AttributeSet attrs)
        +
        获取自定义属性
        +
        +
        参数:
        +
        attrs -
        +
        +
      • +
      + + + +
        +
      • +

        getDateLayout

        +
        public android.widget.LinearLayout getDateLayout()
        +
        +
        覆盖:
        +
        getDateLayout 在类中 AbsOperater
        +
        +
      • +
      + + + +
        +
      • +

        getFlagLayout

        +
        public android.widget.LinearLayout getFlagLayout()
        +
        获取旗标布局
        +
        +
        覆盖:
        +
        getFlagLayout 在类中 AbsOperater
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        newSlideView

        +
        public void newSlideView(android.widget.LinearLayout slidelayout)
        +
        构建侧边栏
        +
        +
        参数:
        +
        slidelayout - 侧边栏的容器
        +
        +
      • +
      + + + +
        +
      • +

        onPanelClicked

        +
        protected void onPanelClicked(android.view.View view,
        +                              float y)
        +
        点击panel时的事件响应
        +
      • +
      + + + +
        +
      • +

        checkPosition

        +
        protected boolean checkPosition(int day,
        +                                int start)
        +
        判断位置是否有课
        +
        +
        参数:
        +
        day -
        +
        start -
        +
        返回:
        +
        true:有课,false:无课
        +
        +
      • +
      + + + +
        +
      • +

        initPanel

        +
        protected void initPanel()
        +
        初始化panel并为panel设置事件监听
        +
      • +
      + + + +
        +
      • +

        showView

        +
        public void showView()
        +
        绘制课程表
        +
        +
        覆盖:
        +
        showView 在类中 AbsOperater
        +
        +
      • +
      + + + +
        +
      • +

        changeWeek

        +
        public void changeWeek(int week,
        +                       boolean isCurWeek)
        +
        切换周次
        +
        +
        覆盖:
        +
        changeWeek 在类中 AbsOperater
        +
        参数:
        +
        week -
        +
        isCurWeek - 是否强制设置为当前周
        +
        +
      • +
      + + + +
        +
      • +

        getPerWidth

        +
        protected float getPerWidth()
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        setWeekendsVisiable

        +
        public void setWeekendsVisiable(boolean isShow)
        +
        设置周末的可见性
        +
        +
        覆盖:
        +
        setWeekendsVisiable 在类中 AbsOperater
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/operater/package-frame.html b/docs/v2.0.3/com/zhuangfei/timetable/operater/package-frame.html new file mode 100644 index 0000000..20c8ed4 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/operater/package-frame.html @@ -0,0 +1,22 @@ + + + + + + +com.zhuangfei.timetable.operater + + + + + +

com.zhuangfei.timetable.operater

+ + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/operater/package-summary.html b/docs/v2.0.3/com/zhuangfei/timetable/operater/package-summary.html new file mode 100644 index 0000000..8cf6b6f --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/operater/package-summary.html @@ -0,0 +1,159 @@ + + + + + + +com.zhuangfei.timetable.operater + + + + + + + + + + + +
+

程序包 com.zhuangfei.timetable.operater

+
+
该包存放与ScheduleOperater有关的类
+
+

请参阅: 说明

+
+
+
    +
  • + + + + + + + + + + + + + + + + +
    类概要 
    说明
    AbsOperater +
    抽象的业务逻辑 + Created by Liu ZhuangFei on 2018/9/2.
    +
    SimpleOperater +
    课表业务操作者,TimetableView中只涉及属性的设置,方法的具体实现在这里.
    +
    +
  • +
+ + + +

程序包com.zhuangfei.timetable.operater的说明

+
该包存放与ScheduleOperater有关的类
+
+ + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/operater/package-tree.html b/docs/v2.0.3/com/zhuangfei/timetable/operater/package-tree.html new file mode 100644 index 0000000..086a230 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/operater/package-tree.html @@ -0,0 +1,140 @@ + + + + + + +com.zhuangfei.timetable.operater 类分层结构 + + + + + + + + + + + +
+

程序包com.zhuangfei.timetable.operater的分层结构

+程序包分层结构: + +
+
+

类分层结构

+
    +
  • java.lang.Object + +
  • +
+
+ + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/package-frame.html b/docs/v2.0.3/com/zhuangfei/timetable/package-frame.html new file mode 100644 index 0000000..3de6056 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +com.zhuangfei.timetable + + + + + +

com.zhuangfei.timetable

+
+

+ +
+ + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/package-summary.html b/docs/v2.0.3/com/zhuangfei/timetable/package-summary.html new file mode 100644 index 0000000..3233c2c --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/package-summary.html @@ -0,0 +1,163 @@ + + + + + + +com.zhuangfei.timetable + + + + + + + + + + + +
+

程序包 com.zhuangfei.timetable

+
+
TimetableView是课表控件,主要是操作该对象进而完成对属性设置以及对视图的创建、更新
+
+

请参阅: 说明

+
+
+ + + + +

程序包com.zhuangfei.timetable的说明

+
TimetableView是课表控件,主要是操作该对象进而完成对属性设置以及对视图的创建、更新
+
+ + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/package-tree.html b/docs/v2.0.3/com/zhuangfei/timetable/package-tree.html new file mode 100644 index 0000000..343c375 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/package-tree.html @@ -0,0 +1,148 @@ + + + + + + +com.zhuangfei.timetable 类分层结构 + + + + + + + + + + + +
+

程序包com.zhuangfei.timetable的分层结构

+程序包分层结构: + +
+
+

类分层结构

+
    +
  • java.lang.Object +
      +
    • android.view.View (implements android.view.accessibility.AccessibilityEventSource, android.graphics.drawable.Drawable.Callback, android.view.KeyEvent.Callback) +
        +
      • android.view.ViewGroup (implements android.view.ViewManager, android.view.ViewParent) +
          +
        • android.widget.LinearLayout + +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+ + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/utils/ColorUtils.html b/docs/v2.0.3/com/zhuangfei/timetable/utils/ColorUtils.html new file mode 100644 index 0000000..a4d545e --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/utils/ColorUtils.html @@ -0,0 +1,284 @@ + + + + + + +ColorUtils + + + + + + + + + + + + +
+
com.zhuangfei.timetable.utils
+

类 ColorUtils

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.utils.ColorUtils
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ColorUtils
    +extends java.lang.Object
    +
    Created by Liu ZhuangFei on 2018/7/25.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器概要

      + + + + + + + + +
      构造器 
      构造器和说明
      ColorUtils() 
      +
    • +
    + +
      +
    • + + +

      方法概要

      + + + + + + + + + + +
      所有方法 静态方法 具体方法 
      限定符和类型方法和说明
      static intalphaColor(int color, + float alpha) +
      合成指定颜色、指定不透明度的颜色, + 0:完全透明,1:不透明
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        ColorUtils

        +
        public ColorUtils()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        alphaColor

        +
        public static int alphaColor(int color,
        +                             float alpha)
        +
        合成指定颜色、指定不透明度的颜色, + 0:完全透明,1:不透明
        +
        +
        参数:
        +
        color -
        +
        alpha - 0:完全透明,1:不透明
        +
        返回:
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/utils/ScreenUtils.html b/docs/v2.0.3/com/zhuangfei/timetable/utils/ScreenUtils.html new file mode 100644 index 0000000..0dbaaa1 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/utils/ScreenUtils.html @@ -0,0 +1,392 @@ + + + + + + +ScreenUtils + + + + + + + + + + + + +
+
com.zhuangfei.timetable.utils
+

类 ScreenUtils

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.zhuangfei.timetable.utils.ScreenUtils
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ScreenUtils
    +extends java.lang.Object
    +
    尺寸工具类
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器概要

      + + + + + + + + +
      构造器 
      构造器和说明
      ScreenUtils() 
      +
    • +
    + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 静态方法 具体方法 
      限定符和类型方法和说明
      static intdip2px(android.content.Context context, + float dpValue) +
      dp转换为px
      +
      static intgetHeightInDp(android.content.Context context) +
      获取屏幕的高度Dp
      +
      static intgetHeightInPx(android.content.Context context) +
      获取屏幕的高度Px
      +
      static intgetWidthInDp(android.content.Context context) +
      获取屏幕的宽度Dp
      +
      static intgetWidthInPx(android.content.Context context) +
      获取屏幕的宽度Px
      +
      static intpx2dip(android.content.Context context, + float pxValue) +
      px转换为dp
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        ScreenUtils

        +
        public ScreenUtils()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        getHeightInPx

        +
        public static final int getHeightInPx(android.content.Context context)
        +
        获取屏幕的高度Px
        +
        +
        参数:
        +
        context -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getWidthInPx

        +
        public static final int getWidthInPx(android.content.Context context)
        +
        获取屏幕的宽度Px
        +
        +
        参数:
        +
        context -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getHeightInDp

        +
        public static final int getHeightInDp(android.content.Context context)
        +
        获取屏幕的高度Dp
        +
        +
        参数:
        +
        context -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getWidthInDp

        +
        public static final int getWidthInDp(android.content.Context context)
        +
        获取屏幕的宽度Dp
        +
        +
        参数:
        +
        context -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        dip2px

        +
        public static int dip2px(android.content.Context context,
        +                         float dpValue)
        +
        dp转换为px
        +
        +
        参数:
        +
        context - 上下文
        +
        dpValue - dp
        +
        返回:
        +
        px
        +
        +
      • +
      + + + +
        +
      • +

        px2dip

        +
        public static int px2dip(android.content.Context context,
        +                         float pxValue)
        +
        px转换为dp
        +
        +
        参数:
        +
        context - 上下文
        +
        pxValue - px
        +
        返回:
        +
        dp
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/utils/package-frame.html b/docs/v2.0.3/com/zhuangfei/timetable/utils/package-frame.html new file mode 100644 index 0000000..770ac27 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/utils/package-frame.html @@ -0,0 +1,22 @@ + + + + + + +com.zhuangfei.timetable.utils + + + + + +

com.zhuangfei.timetable.utils

+
+

+ +
+ + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/utils/package-summary.html b/docs/v2.0.3/com/zhuangfei/timetable/utils/package-summary.html new file mode 100644 index 0000000..4bfceb3 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/utils/package-summary.html @@ -0,0 +1,158 @@ + + + + + + +com.zhuangfei.timetable.utils + + + + + + + + + + + +
+

程序包 com.zhuangfei.timetable.utils

+
+
该包存放一些全局的工具方法
+
+

请参阅: 说明

+
+
+
    +
  • + + + + + + + + + + + + + + + + +
    类概要 
    说明
    ColorUtils +
    Created by Liu ZhuangFei on 2018/7/25.
    +
    ScreenUtils +
    尺寸工具类
    +
    +
  • +
+ + + +

程序包com.zhuangfei.timetable.utils的说明

+
该包存放一些全局的工具方法
+
+ + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/utils/package-tree.html b/docs/v2.0.3/com/zhuangfei/timetable/utils/package-tree.html new file mode 100644 index 0000000..86a382b --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/utils/package-tree.html @@ -0,0 +1,137 @@ + + + + + + +com.zhuangfei.timetable.utils 类分层结构 + + + + + + + + + + + +
+

程序包com.zhuangfei.timetable.utils的分层结构

+程序包分层结构: + +
+
+

类分层结构

+
    +
  • java.lang.Object + +
  • +
+
+ + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/view/PerWeekView.html b/docs/v2.0.3/com/zhuangfei/timetable/view/PerWeekView.html new file mode 100644 index 0000000..def9d73 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/view/PerWeekView.html @@ -0,0 +1,604 @@ + + + + + + +PerWeekView + + + + + + + + + + + + +
+
com.zhuangfei.timetable.view
+

类 PerWeekView

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • android.view.View
    • +
    • +
        +
      • com.zhuangfei.timetable.view.PerWeekView
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    所有已实现的接口:
    +
    android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback
    +
    +
    +
    +
    public class PerWeekView
    +extends android.view.View
    +
    周次选择栏的每项自定义View,表示某周的有课情况. + 使用周一至周五、第1-10节的数据进行绘制,绘制的结果是一个5x5的点阵: + + 5列分别表示周一至周五 + 5行分别表示1-2节、3-4节、5-6节、7-8节、9-10节的有课情况 + + 有课的地方用亮色的圆点,没课的地方用暗色的圆点
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      嵌套类概要

      +
        +
      • + + +

        从类继承的嵌套类/接口 android.view.View

        +android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
      • +
      +
    • +
    + +
      +
    • + + +

      字段概要

      +
        +
      • + + +

        从类继承的字段 android.view.View

        +ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z
      • +
      +
    • +
    + +
      +
    • + + +

      构造器概要

      + + + + + + + + + + + +
      构造器 
      构造器和说明
      PerWeekView(android.content.Context context) 
      PerWeekView(android.content.Context context, + android.util.AttributeSet attrs) 
      +
    • +
    + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      voiddrawPoint(android.graphics.Canvas canvas, + int x, + int y, + int radius, + android.graphics.Paint p) +
      画点
      +
      int[][]getArray() +
      根据此数据源分析出一个二维数组.
      +
      java.util.List<Schedule>getDataSource() +
      获取数据源
      +
      android.graphics.PaintgetGrayPaint() +
      获取暗色的画笔
      +
      android.graphics.PaintgetLightPaint() +
      获取亮色的画笔
      +
      protected voidonDraw(android.graphics.Canvas canvas) 
      protected voidonSizeChanged(int w, + int h, + int oldw, + int oldh) 
      PerWeekViewsetData(java.util.List<Schedule> list, + int curWeek) +
      设置数据源
      +
      PerWeekViewsetGrayColor(int grayColor) +
      设置暗色
      +
      PerWeekViewsetLightColor(int lightColor) +
      设置亮色
      +
      PerWeekViewsetRadiusInDp(int radiusDp) +
      设置半径Dp
      +
      PerWeekViewsetRadiusInPx(int radiusPx) +
      设置半径Px
      +
      PerWeekViewsetSource(java.util.List<? extends ScheduleEnable> list, + int curWeek) +
      设置数据源
      +
      +
        +
      • + + +

        从类继承的方法 android.view.View

        +addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addFocusables, addKeyboardNavigationClusters, addOnAttachStateChangeListener, addOnLayoutChangeListener, addTouchables, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, clearFocus, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchGenericFocusedEvent, dispatchGenericMotionEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPointerCaptureChanged, dispatchPopulateAccessibilityEvent, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, draw, drawableHotspotChanged, drawableStateChanged, findFocus, findViewById, findViewsWithText, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityClassName, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getImportantForAutofill, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverlay, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocus, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasPointerCapture, hasTransientState, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, jumpDrawablesToCurrentState, keyboardNavigationClusterSearch, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onAttachedToWindow, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateDrawableState, onCreateInputConnection, onDetachedFromWindow, onDisplayHint, onDragEvent, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onLayout, onMeasure, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideStructure, onProvideVirtualStructure, onResolvePointerIcon, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreDefaultFocus, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAutofillHints, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForeground, setForegroundGravity, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw
      • +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        PerWeekView

        +
        public PerWeekView(android.content.Context context)
        +
      • +
      + + + +
        +
      • +

        PerWeekView

        +
        public PerWeekView(android.content.Context context,
        +                   android.util.AttributeSet attrs)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        getLightPaint

        +
        public android.graphics.Paint getLightPaint()
        +
        获取亮色的画笔
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getGrayPaint

        +
        public android.graphics.Paint getGrayPaint()
        +
        获取暗色的画笔
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        setLightColor

        +
        public PerWeekView setLightColor(int lightColor)
        +
        设置亮色
        +
        +
        参数:
        +
        lightColor - 亮色
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        setGrayColor

        +
        public PerWeekView setGrayColor(int grayColor)
        +
        设置暗色
        +
        +
        参数:
        +
        grayColor - 暗色
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        getDataSource

        +
        public java.util.List<Schedule> getDataSource()
        +
        获取数据源
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        setSource

        +
        public PerWeekView setSource(java.util.List<? extends ScheduleEnable> list,
        +                             int curWeek)
        +
        设置数据源
        +
        +
        参数:
        +
        list -
        +
        curWeek -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        setData

        +
        public PerWeekView setData(java.util.List<Schedule> list,
        +                           int curWeek)
        +
        设置数据源
        +
        +
        参数:
        +
        list -
        +
        curWeek -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        setRadiusInPx

        +
        public PerWeekView setRadiusInPx(int radiusPx)
        +
        设置半径Px
        +
        +
        参数:
        +
        radiusPx - 半径
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        setRadiusInDp

        +
        public PerWeekView setRadiusInDp(int radiusDp)
        +
        设置半径Dp
        +
        +
        参数:
        +
        radiusDp - 半径
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        onSizeChanged

        +
        protected void onSizeChanged(int w,
        +                             int h,
        +                             int oldw,
        +                             int oldh)
        +
        +
        覆盖:
        +
        onSizeChanged 在类中 android.view.View
        +
        +
      • +
      + + + +
        +
      • +

        onDraw

        +
        protected void onDraw(android.graphics.Canvas canvas)
        +
        +
        覆盖:
        +
        onDraw 在类中 android.view.View
        +
        +
      • +
      + + + +
        +
      • +

        getArray

        +
        public int[][] getArray()
        +
        根据此数据源分析出一个二维数组.
        +
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        drawPoint

        +
        public void drawPoint(android.graphics.Canvas canvas,
        +                      int x,
        +                      int y,
        +                      int radius,
        +                      android.graphics.Paint p)
        +
        画点
        +
        +
        参数:
        +
        canvas -
        +
        x - 圆心x
        +
        y - 圆心y
        +
        radius - 半径
        +
        p - 画笔
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/view/WeekView.html b/docs/v2.0.3/com/zhuangfei/timetable/view/WeekView.html new file mode 100644 index 0000000..249a314 --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/view/WeekView.html @@ -0,0 +1,710 @@ + + + + + + +WeekView + + + + + + + + + + + + +
+
com.zhuangfei.timetable.view
+

类 WeekView

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • android.view.View
    • +
    • +
        +
      • android.view.ViewGroup
      • +
      • +
          +
        • android.widget.LinearLayout
        • +
        • +
            +
          • com.zhuangfei.timetable.view.WeekView
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    所有已实现的接口:
    +
    android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.view.ViewManager, android.view.ViewParent, WeekViewEnable<WeekView>
    +
    +
    +
    +
    public class WeekView
    +extends android.widget.LinearLayout
    +implements WeekViewEnable<WeekView>
    +
    周次选择栏自定义View. + 每一项均为PerWeekView
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      嵌套类概要

      +
        +
      • + + +

        从类继承的嵌套类/接口 android.widget.LinearLayout

        +android.widget.LinearLayout.LayoutParams
      • +
      +
        +
      • + + +

        从类继承的嵌套类/接口 android.view.ViewGroup

        +android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
      • +
      +
        +
      • + + +

        从类继承的嵌套类/接口 android.view.View

        +android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
      • +
      +
    • +
    + +
      +
    • + + +

      字段概要

      +
        +
      • + + +

        从类继承的字段 android.widget.LinearLayout

        +HORIZONTAL, SHOW_DIVIDER_BEGINNING, SHOW_DIVIDER_END, SHOW_DIVIDER_MIDDLE, SHOW_DIVIDER_NONE, VERTICAL
      • +
      +
        +
      • + + +

        从类继承的字段 android.view.ViewGroup

        +CLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
      • +
      +
        +
      • + + +

        从类继承的字段 android.view.View

        +ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z
      • +
      +
    • +
    + +
      +
    • + + +

      构造器概要

      + + + + + + + + + + + +
      构造器 
      构造器和说明
      WeekView(android.content.Context context) 
      WeekView(android.content.Context context, + android.util.AttributeSet attrs) 
      +
    • +
    + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      WeekViewcallback(IWeekView.OnWeekItemClickedListener onWeekItemClickedListener) +
      设置Item点击监听
      +
      WeekViewcallback(IWeekView.OnWeekLeftClickedListener onWeekLeftClickedListener) +
      设置左侧按钮点击监听
      +
      WeekViewcurWeek(int curWeek) +
      设置当前周
      +
      WeekViewdata(java.util.List<Schedule> scheduleList) +
      设置数据源
      +
      java.util.List<Schedule>dataSource() +
      获取数据源
      +
      WeekViewhideLeftLayout() +
      隐藏左侧设置当前周的控件
      +
      WeekViewisShow(boolean isShow) +
      设置控件的可见性
      +
      booleanisShowing() +
      判断该控件是否显示
      +
      intitemCount() +
      获取项数
      +
      WeekViewitemCount(int count) +
      设置项数
      +
      IWeekView.OnWeekItemClickedListeneronWeekItemClickedListener() +
      获取Item点击监听
      +
      IWeekView.OnWeekLeftClickedListeneronWeekLeftClickedListener() +
      获取左侧按钮点击监听
      +
      voidresetBackground() +
      重置背景色
      +
      WeekViewshowView() +
      初次构建时调用,显示周次选择布局
      +
      WeekViewsource(java.util.List<? extends ScheduleEnable> list) +
      设置数据源
      +
      WeekViewupdateView() +
      当前周被改变后可以调用该方式修正一下底部的文本
      +
      +
        +
      • + + +

        从类继承的方法 android.widget.LinearLayout

        +checkLayoutParams, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getBaseline, getBaselineAlignedChildIndex, getDividerDrawable, getDividerPadding, getGravity, getOrientation, getShowDividers, getWeightSum, isBaselineAligned, isMeasureWithLargestChildEnabled, onDraw, onLayout, onMeasure, onRtlPropertiesChanged, setBaselineAligned, setBaselineAlignedChildIndex, setDividerDrawable, setDividerPadding, setGravity, setHorizontalGravity, setMeasureWithLargestChildEnabled, setOrientation, setShowDividers, setVerticalGravity, setWeightSum, shouldDelayChildPressedState
      • +
      +
        +
      • + + +

        从类继承的方法 android.view.ViewGroup

        +addChildrenForAccessibility, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAttachedToWindow, onCreateDrawableState, onDescendantInvalidated, onDetachedFromWindow, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
      • +
      +
        +
      • + + +

        从类继承的方法 android.view.View

        +addExtraDataToAccessibilityNodeInfo, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, dispatchStartTemporaryDetach, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintList, getBackgroundTintMode, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getImportantForAutofill, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, keyboardNavigationClusterSearch, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideStructure, onProvideVirtualStructure, onRestoreInstanceState, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAutofillHints, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForeground, setForegroundGravity, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw
      • +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        从接口继承的方法 android.view.ViewParent

        +canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayout
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/view/package-frame.html b/docs/v2.0.3/com/zhuangfei/timetable/view/package-frame.html new file mode 100644 index 0000000..0f2bbba --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/view/package-frame.html @@ -0,0 +1,22 @@ + + + + + + +com.zhuangfei.timetable.view + + + + + +

com.zhuangfei.timetable.view

+
+

+ +
+ + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/view/package-summary.html b/docs/v2.0.3/com/zhuangfei/timetable/view/package-summary.html new file mode 100644 index 0000000..d0b0ffe --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/view/package-summary.html @@ -0,0 +1,158 @@ + + + + + + +com.zhuangfei.timetable.view + + + + + + + + + + + +
+

程序包 com.zhuangfei.timetable.view

+
+
该包存放控件实现的自定义View
+
+

请参阅: 说明

+
+
+
    +
  • + + + + + + + + + + + + + + + + +
    类概要 
    说明
    PerWeekView +
    周次选择栏的每项自定义View,表示某周的有课情况.
    +
    WeekView +
    周次选择栏自定义View.
    +
    +
  • +
+ + + +

程序包com.zhuangfei.timetable.view的说明

+
该包存放控件实现的自定义View
+
+ + + + + + diff --git a/docs/v2.0.3/com/zhuangfei/timetable/view/package-tree.html b/docs/v2.0.3/com/zhuangfei/timetable/view/package-tree.html new file mode 100644 index 0000000..8d5073e --- /dev/null +++ b/docs/v2.0.3/com/zhuangfei/timetable/view/package-tree.html @@ -0,0 +1,149 @@ + + + + + + +com.zhuangfei.timetable.view 类分层结构 + + + + + + + + + + + +
+

程序包com.zhuangfei.timetable.view的分层结构

+程序包分层结构: + +
+
+

类分层结构

+
    +
  • java.lang.Object +
      +
    • android.view.View (implements android.view.accessibility.AccessibilityEventSource, android.graphics.drawable.Drawable.Callback, android.view.KeyEvent.Callback) +
        +
      • com.zhuangfei.timetable.view.PerWeekView
      • +
      • android.view.ViewGroup (implements android.view.ViewManager, android.view.ViewParent) +
          +
        • android.widget.LinearLayout + +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+ + + + + + diff --git a/docs/v2.0.3/constant-values.html b/docs/v2.0.3/constant-values.html new file mode 100644 index 0000000..f602dd2 --- /dev/null +++ b/docs/v2.0.3/constant-values.html @@ -0,0 +1,123 @@ + + + + + + +常量字段值 + + + + + + + + + + + +
+

常量字段值

+

目录

+
+ + + + + + diff --git a/docs/v2.0.3/deprecated-list.html b/docs/v2.0.3/deprecated-list.html new file mode 100644 index 0000000..9b329a5 --- /dev/null +++ b/docs/v2.0.3/deprecated-list.html @@ -0,0 +1,123 @@ + + + + + + +已过时的列表 + + + + + + + + +
+ + + + + + + +
+ + +
+

已过时的 API

+

目录

+
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/help-doc.html b/docs/v2.0.3/help-doc.html new file mode 100644 index 0000000..997c144 --- /dev/null +++ b/docs/v2.0.3/help-doc.html @@ -0,0 +1,224 @@ + + + + + + +API 帮助 + + + + + + + + +
+ + + + + + + +
+ + +
+

此 API 文档的组织方式

+
此 API (应用程序编程接口) 文档包含对应于导航栏中的项目的页面, 如下所述。
+
+
+
    +
  • +

    概览

    +

    概览 页面是此 API 文档的首页, 提供了所有程序包的列表及其概要。此页面也可能包含这些程序包的总体说明。

    +
  • +
  • +

    程序包

    +

    每个程序包都有一个页面, 其中包含它的类和接口的列表及其概要。此页面可以包含六个类别:

    +
      +
    • 接口 (斜体)
    • +
    • +
    • 枚举
    • +
    • 异常错误
    • +
    • 错误
    • +
    • 注释类型
    • +
    +
  • +
  • +

    类/接口

    +

    每个类, 接口, 嵌套类和嵌套接口都有各自的页面。其中每个页面都由三部分 (类/接口说明, 概要表, 以及详细的成员说明) 组成:

    +
      +
    • 类继承图
    • +
    • 直接子类
    • +
    • 所有已知子接口
    • +
    • 所有已知实现类
    • +
    • 类/接口声明
    • +
    • 类/接口说明
    • +
    +
      +
    • 嵌套类概要
    • +
    • 字段概要
    • +
    • 构造器概要
    • +
    • 方法概要
    • +
    +
      +
    • 字段详细资料
    • +
    • 构造器详细资料
    • +
    • 方法详细资料
    • +
    +

    每个概要条目都包含该项目的详细说明的第一句。概要条目按字母顺序排列, 而详细说明则按其在源代码中出现的顺序排列。这样保持了程序员所建立的逻辑分组。

    +
  • +
  • +

    注释类型

    +

    每个注释类型都有各自的页面, 其中包含以下部分:

    +
      +
    • 注释类型声明
    • +
    • 注释类型说明
    • +
    • 必需元素概要
    • +
    • 可选元素概要
    • +
    • 元素详细资料
    • +
    +
  • +
  • +

    枚举

    +

    每个枚举都有各自的页面, 其中包含以下部分:

    +
      +
    • 枚举声明
    • +
    • 枚举说明
    • +
    • 枚举常量概要
    • +
    • 枚举常量详细资料
    • +
    +
  • +
  • +

    树 (类分层结构)

    +

    对于所有程序包, 有一个类分层结构页面, 以及每个程序包的分层结构。每个分层结构页面都包含类的列表和接口的列表。从java.lang.Object开始, 按继承结构对类进行排列。接口不从java.lang.Object继承。

    +
      +
    • 查看“概览”页面时, 单击 "树" 将显示所有程序包的分层结构。
    • +
    • 查看特定程序包, 类或接口页面时, 单击 "树" 将仅显示该程序包的分层结构。
    • +
    +
  • +
  • +

    已过时的 API

    +

    已过时的 API 页面列出了所有已过时的 API。一般由于进行了改进并且通常提供了替代的 API, 所以建议不要使用已过时的 API。在将来的实现过程中, 可能会删除已过时的 API。

    +
  • +
  • +

    索引

    +

    索引 包含按字母顺序排列的所有类, 接口, 构造器, 方法和字段的列表。

    +
  • +
  • +

    上一个/下一个

    +

    这些链接使您可以转至下一个或上一个类, 接口, 程序包或相关页面。

    +
  • +
  • +

    框架/无框架

    +

    这些链接用于显示和隐藏 HTML 框架。所有页面均具有有框架和无框架两种显示方式。

    +
  • +
  • +

    所有类

    +

    所有类链接显示所有类和接口 (除了非静态嵌套类型)。

    +
  • +
  • +

    序列化表格

    +

    每个可序列化或可外部化的类都有其序列化字段和方法的说明。此信息对重新实现者有用, 而对使用 API 的开发者则没有什么用处。尽管导航栏中没有链接, 但您可以通过下列方式获取此信息: 转至任何序列化类, 然后单击类说明的 "另请参阅" 部分中的 "序列化表格"。

    +
  • +
  • +

    常量字段值

    +

    常量字段值页面列出了静态最终字段及其值。

    +
  • +
+此帮助文件适用于使用标准 doclet 生成的 API 文档。
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-1.html b/docs/v2.0.3/index-files/index-1.html new file mode 100644 index 0000000..546e48b --- /dev/null +++ b/docs/v2.0.3/index-files/index-1.html @@ -0,0 +1,160 @@ + + + + + + +A - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

A

+
+
AbsOperater - com.zhuangfei.timetable.operater中的类
+
+
抽象的业务逻辑 + Created by Liu ZhuangFei on 2018/9/2.
+
+
AbsOperater() - 类 的构造器com.zhuangfei.timetable.operater.AbsOperater
+
 
+
activeDateBackground(int) - 类 中的方法com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
add(int...) - 类 中的方法com.zhuangfei.timetable.model.ScheduleColorPool
+
+
在颜色池中添加一些自定义的颜色
+
+
addAll(Collection<? extends Integer>) - 类 中的方法com.zhuangfei.timetable.model.ScheduleColorPool
+
+
将指定集合中的颜色加入到颜色池中
+
+
alpha - 类 中的变量com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
alpha - 类 中的变量com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
 
+
alpha(float, float, float) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
透明度设置
+
+
alpha(float) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
将三个透明度统一设置
+
+
alphaColor(int, float) - 类 中的静态方法com.zhuangfei.timetable.utils.ColorUtils
+
+
合成指定颜色、指定不透明度的颜色, + 0:完全透明,1:不透明
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-10.html b/docs/v2.0.3/index-files/index-10.html new file mode 100644 index 0000000..fc71c3b --- /dev/null +++ b/docs/v2.0.3/index-files/index-10.html @@ -0,0 +1,168 @@ + + + + + + +M - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

M

+
+
marLeft - 类 中的变量com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter
+
 
+
marLeft(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置左边距值
+
+
marLeft() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取左边距
+
+
marTop - 类 中的变量com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter
+
 
+
marTop(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置上边距值
+
+
marTop() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取上边距
+
+
maxSlideItem(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置最大节次
+
+
maxSlideItem() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取最大节次
+
+
monthWidth - 类 中的变量com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter
+
 
+
monthWidth() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取侧边栏宽度px
+
+
monthWidthDp(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置侧边栏宽度dp
+
+
monthWidthPx(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置侧边栏宽度px
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-11.html b/docs/v2.0.3/index-files/index-11.html new file mode 100644 index 0000000..db48798 --- /dev/null +++ b/docs/v2.0.3/index-files/index-11.html @@ -0,0 +1,130 @@ + + + + + + +N - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

N

+
+
newSlideView(LinearLayout) - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
+
构建侧边栏
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-12.html b/docs/v2.0.3/index-files/index-12.html new file mode 100644 index 0000000..5b77e1f --- /dev/null +++ b/docs/v2.0.3/index-files/index-12.html @@ -0,0 +1,331 @@ + + + + + + +O - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

O

+
+
onBuildDayLayout(LayoutInflater, int, int, int) - 类 中的方法com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
onBuildMonthLayout(LayoutInflater, int, int) - 类 中的方法com.zhuangfei.timetable.listener.OnDateBuildAapter
+
+
构建月份,也就是日期栏的第一格.
+
+
OnDateBuildAapter - com.zhuangfei.timetable.listener中的类
+
+
日期栏的构建过程.
+
+
OnDateBuildAapter() - 类 的构造器com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
onDateBuildListener() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取日期栏构建监听器
+
+
onDraw(Canvas) - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
 
+
onFlaglayoutClick(int, int) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnFlaglayoutClickListener
+
+
当旗标布局被点击时回调
+
+
onFlaglayoutClick(int, int) - 类 中的方法com.zhuangfei.timetable.listener.OnFlaglayoutClickAdapter
+
 
+
OnFlaglayoutClickAdapter - com.zhuangfei.timetable.listener中的类
+
+
Created by Liu ZhuangFei on 2018/8/3.
+
+
OnFlaglayoutClickAdapter() - 类 的构造器com.zhuangfei.timetable.listener.OnFlaglayoutClickAdapter
+
 
+
onFlaglayoutClickListener() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取旗标布局点击监听器
+
+
onHighLight() - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnDateBuildListener
+
+
为日期栏设置高亮时回调
+
+
onHighLight() - 类 中的方法com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
onInit(LinearLayout, float) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnDateBuildListener
+
+
初始化方法
+
+
onInit(LinearLayout, float) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnSlideBuildListener
+
+
初始化方法
+
+
onInit(LinearLayout, int, int, int, int, int) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnSpaceItemClickListener
+
+
初始化方法
+
+
onInit(LinearLayout, float) - 类 中的方法com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
onInit(LinearLayout, float) - 类 中的方法com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
 
+
onInit(LinearLayout, int, int, int, int, int) - 类 中的方法com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter
+
 
+
OnItemBuildAdapter - com.zhuangfei.timetable.listener中的类
+
+
Item构建监听器的默认实现.
+
+
OnItemBuildAdapter() - 类 的构造器com.zhuangfei.timetable.listener.OnItemBuildAdapter
+
 
+
onItemBuildListener() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取Item构建监听器
+
+
onItemClick(View, List<Schedule>) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnItemClickListener
+
+
当课程项被点击时回调
+
+
onItemClick(View, List<Schedule>) - 类 中的方法com.zhuangfei.timetable.listener.OnItemClickAdapter
+
 
+
OnItemClickAdapter - com.zhuangfei.timetable.listener中的类
+
+
Item点击的默认实现.
+
+
OnItemClickAdapter() - 类 的构造器com.zhuangfei.timetable.listener.OnItemClickAdapter
+
 
+
onItemClickListener() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取Item点击监听
+
+
OnItemLongClickAdapter - com.zhuangfei.timetable.listener中的类
+
+
Created by Liu ZhuangFei on 2018/8/3.
+
+
OnItemLongClickAdapter() - 类 的构造器com.zhuangfei.timetable.listener.OnItemLongClickAdapter
+
 
+
onItemLongClickListener() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取课程项长按监听器
+
+
onItemUpdate(FrameLayout, TextView, TextView, Schedule, GradientDrawable) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnItemBuildListener
+
+
课程项构建完成后回调.
+
+
onItemUpdate(FrameLayout, TextView, TextView, Schedule, GradientDrawable) - 类 中的方法com.zhuangfei.timetable.listener.OnItemBuildAdapter
+
 
+
onLongClick(View, int, int) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnItemLongClickListener
+
+
当课程项被点击时回调
+
+
onLongClick(View, int, int) - 类 中的方法com.zhuangfei.timetable.listener.OnItemLongClickAdapter
+
 
+
onPanelClicked(View, float) - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
+
点击panel时的事件响应
+
+
OnScrollViewBuildAdapter - com.zhuangfei.timetable.listener中的类
+
+
滚动布局构建监听的默认实现
+
+
OnScrollViewBuildAdapter() - 类 的构造器com.zhuangfei.timetable.listener.OnScrollViewBuildAdapter
+
 
+
onScrollViewBuildListener() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取滚动布局构建监听器
+
+
onSizeChanged(int, int, int, int) - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
 
+
OnSlideBuildAdapter - com.zhuangfei.timetable.listener中的类
+
+
控件实现的一个可以显示时间的侧边栏适配器 + Created by Liu ZhuangFei on 2018/6/18.
+
+
OnSlideBuildAdapter() - 类 的构造器com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
 
+
onSlideBuildListener() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取侧边栏构建监听
+
+
onSpaceItemClick(int, int) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnSpaceItemClickListener
+
+
当课程项被点击时回调
+
+
onSpaceItemClick(int, int) - 类 中的方法com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter
+
 
+
OnSpaceItemClickAdapter - com.zhuangfei.timetable.listener中的类
+
+
Created by Liu ZhuangFei on 2018/8/3.
+
+
OnSpaceItemClickAdapter() - 类 的构造器com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter
+
 
+
onSpaceItemClickListener() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取空白格子点击监听器
+
+
onUpdateDate(int, int) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnDateBuildListener
+
+
更新日期时回调
+
+
onUpdateDate(int, int) - 类 中的方法com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
onWeekChanged(int) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnWeekChangedListener
+
+
当周次被改变时回调
+
+
onWeekChanged(int) - 类 中的方法com.zhuangfei.timetable.listener.OnWeekChangedAdapter
+
 
+
OnWeekChangedAdapter - com.zhuangfei.timetable.listener中的类
+
 
+
OnWeekChangedAdapter() - 类 的构造器com.zhuangfei.timetable.listener.OnWeekChangedAdapter
+
 
+
onWeekChangedListener() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取周次改变监听器
+
+
onWeekClicked(int) - 接口 中的方法com.zhuangfei.timetable.listener.IWeekView.OnWeekItemClickedListener
+
+
当Item被点击时回调
+
+
onWeekClicked(int) - 类 中的方法com.zhuangfei.timetable.listener.OnWeekItemClickedAdapter
+
 
+
OnWeekItemClickedAdapter - com.zhuangfei.timetable.listener中的类
+
+
WeekView的Item点击监听默认实现
+
+
OnWeekItemClickedAdapter() - 类 的构造器com.zhuangfei.timetable.listener.OnWeekItemClickedAdapter
+
 
+
onWeekItemClickedListener() - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
获取Item点击监听
+
+
onWeekLeftClicked() - 接口 中的方法com.zhuangfei.timetable.listener.IWeekView.OnWeekLeftClickedListener
+
+
当"设置当前周"按钮被点击时回调
+
+
onWeekLeftClicked() - 类 中的方法com.zhuangfei.timetable.listener.OnWeekLeftClickedAdapter
+
 
+
OnWeekLeftClickedAdapter - com.zhuangfei.timetable.listener中的类
+
+
WeekView的左侧按钮点击监听默认实现
+
+
OnWeekLeftClickedAdapter() - 类 的构造器com.zhuangfei.timetable.listener.OnWeekLeftClickedAdapter
+
 
+
onWeekLeftClickedListener() - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
获取左侧按钮点击监听
+
+
operater() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
 
+
operater(AbsOperater) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
 
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-13.html b/docs/v2.0.3/index-files/index-13.html new file mode 100644 index 0000000..631eecc --- /dev/null +++ b/docs/v2.0.3/index-files/index-13.html @@ -0,0 +1,140 @@ + + + + + + +P - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

P

+
+
PerWeekView - com.zhuangfei.timetable.view中的类
+
+
周次选择栏的每项自定义View,表示某周的有课情况.
+
+
PerWeekView(Context) - 类 的构造器com.zhuangfei.timetable.view.PerWeekView
+
 
+
PerWeekView(Context, AttributeSet) - 类 的构造器com.zhuangfei.timetable.view.PerWeekView
+
 
+
putExtras(String, Object) - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
px2dip(Context, float) - 类 中的静态方法com.zhuangfei.timetable.utils.ScreenUtils
+
+
px转换为dp
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-14.html b/docs/v2.0.3/index-files/index-14.html new file mode 100644 index 0000000..b401cf4 --- /dev/null +++ b/docs/v2.0.3/index-files/index-14.html @@ -0,0 +1,138 @@ + + + + + + +R - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

R

+
+
reset() - 类 中的方法com.zhuangfei.timetable.model.ScheduleColorPool
+
+
重置,先在池子里添加一些默认的课程项颜色
+
+
resetBackground() - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
重置背景色
+
+
resetFlagBgcolor() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
重置旗标布局背景色
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-15.html b/docs/v2.0.3/index-files/index-15.html new file mode 100644 index 0000000..3e1208b --- /dev/null +++ b/docs/v2.0.3/index-files/index-15.html @@ -0,0 +1,296 @@ + + + + + + +S - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

S

+
+
Schedule - com.zhuangfei.timetable.model中的类
+
+
课程实体类
+ 1.增加了extras,可以保存一些自己需要的东西
+
+
Schedule(String, String, String, List<Integer>, int, int, int, int) - 类 的构造器com.zhuangfei.timetable.model.Schedule
+
 
+
Schedule() - 类 的构造器com.zhuangfei.timetable.model.Schedule
+
 
+
ScheduleColorPool - com.zhuangfei.timetable.model中的类
+
+
颜色池,管理课程项可挑选的颜色
+
+
ScheduleColorPool(Context) - 类 的构造器com.zhuangfei.timetable.model.ScheduleColorPool
+
 
+
ScheduleEnable - com.zhuangfei.timetable.model中的接口
+
+
该接口定义数据转换的规范, + 用户自定义课程实体类需要实现该接口以及实现其中的转换方法, + 在设置数据源时可以使用自定义的课程实体,但是必须实现该接口
+
+
ScheduleSupport - com.zhuangfei.timetable.model中的类
+
+
课程表的工具包,主要提供几个便捷的方法
+
+
ScheduleSupport() - 类 的构造器com.zhuangfei.timetable.model.ScheduleSupport
+
 
+
ScreenUtils - com.zhuangfei.timetable.utils中的类
+
+
尺寸工具类
+
+
ScreenUtils() - 类 的构造器com.zhuangfei.timetable.utils.ScreenUtils
+
 
+
setBackground(int) - 类 中的方法com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
setBackground(int) - 类 中的方法com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
 
+
setColorRandom(int) - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
setData(List<Schedule>, int) - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
+
设置数据源
+
+
setDay(int) - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
setExtras(Map<String, Object>) - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
setGrayColor(int) - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
+
设置暗色
+
+
setLightColor(int) - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
+
设置亮色
+
+
setName(String) - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
setRadiusInDp(int) - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
+
设置半径Dp
+
+
setRadiusInPx(int) - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
+
设置半径Px
+
+
setRoom(String) - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
setSource(List<? extends ScheduleEnable>, int) - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
+
设置数据源
+
+
setStart(int) - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
setStep(int) - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
setTeacher(String) - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
setTextColor(int) - 类 中的方法com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
+
设置节次文本颜色
+
+
setTextSize(float) - 类 中的方法com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
+
设置节次文本的大小
+
+
setTimes(String[]) - 类 中的方法com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
+
设置时刻数组
+
+
setTimeTextColor(int) - 类 中的方法com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
+
设置节次时间的文本颜色
+
+
setTimeTextSize(float) - 类 中的方法com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
+
设置节次时间的文本大小
+
+
setUselessColor(int) - 类 中的方法com.zhuangfei.timetable.model.ScheduleColorPool
+
+
设置非本周课程颜色
+
+
setWeekendsVisiable(boolean) - 类 中的方法com.zhuangfei.timetable.operater.AbsOperater
+
 
+
setWeekendsVisiable(boolean) - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
+
设置周末的可见性
+
+
setWeekList(List<Integer>) - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
showDateView() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
将日期栏设为可见状态
+
+
showFlaglayout() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
显示旗标布局,立即生效
+
+
showView() - 接口 中的方法com.zhuangfei.timetable.model.WeekViewEnable
+
+
初次构建时调用,显示周次选择布局
+
+
showView() - 类 中的方法com.zhuangfei.timetable.operater.AbsOperater
+
 
+
showView() - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
+
绘制课程表
+
+
showView() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
 
+
showView() - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
初次构建时调用,显示周次选择布局
+
+
SimpleOperater - com.zhuangfei.timetable.operater中的类
+
+
课表业务操作者,TimetableView中只涉及属性的设置,方法的具体实现在这里.
+
+
SimpleOperater() - 类 的构造器com.zhuangfei.timetable.operater.SimpleOperater
+
 
+
size() - 类 中的方法com.zhuangfei.timetable.model.ScheduleColorPool
+
+
颜色池的大小
+
+
slideAlpha() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取侧边栏透明度
+
+
sortList(List<Schedule>[]) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
按照上课节次排序
+
+
sortList(List<Schedule>) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
 
+
source(List<? extends ScheduleEnable>) - 接口 中的方法com.zhuangfei.timetable.model.WeekViewEnable
+
+
设置数据源
+
+
source(List<? extends ScheduleEnable>) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置数据源
+
+
source(List<? extends ScheduleEnable>) - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
设置数据源
+
+
splitSubjectWithDay(List<Schedule>) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
将源数据拆分为数组的七个元素,每个元素为一个集合, + 依次为周一-周日的课程集合
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-16.html b/docs/v2.0.3/index-files/index-16.html new file mode 100644 index 0000000..2c73df6 --- /dev/null +++ b/docs/v2.0.3/index-files/index-16.html @@ -0,0 +1,169 @@ + + + + + + +T - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

T

+
+
textColor - 类 中的变量com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
 
+
textSize - 类 中的变量com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
 
+
textViews - 类 中的变量com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
thisWeekCorner(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置本周课程的弧度
+
+
times - 类 中的变量com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
 
+
TimetableView - com.zhuangfei.timetable中的类
+
+
课程表控件,该类主要负责属性的设置,业务逻辑由SimpleOperater处理 + 虽然这个类代码很多,但是都是属性设置,除了属性设置的方法: + TimetableView.showView() + TimetableView.changeWeek(int, boolean) + TimetableView.changeWeekOnly(int) + TimetableView.changeWeekForce(int) + TimetableView.updateView() + TimetableView.updateSlideView() + TimetableView.updateDateView() + TimetableView.updateView() + + 文档参考 https://github.com/zfman/TimetableView/wiki/%E6%9C%80%E6%96%B0%E6%96%87%E6%A1%A3
+
+
TimetableView(Context, AttributeSet) - 类 的构造器com.zhuangfei.timetable.TimetableView
+
+
初始化
+
+
timeTextColor - 类 中的变量com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
 
+
timeTextSize - 类 中的变量com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
 
+
timeTransfrom(String) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
根据开学时间计算当前周
+
+
transform(List<? extends ScheduleEnable>) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
转换,将自定义类型转换为List
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-17.html b/docs/v2.0.3/index-files/index-17.html new file mode 100644 index 0000000..c38f5a9 --- /dev/null +++ b/docs/v2.0.3/index-files/index-17.html @@ -0,0 +1,162 @@ + + + + + + +U - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

U

+
+
updateDateView() - 类 中的方法com.zhuangfei.timetable.operater.AbsOperater
+
 
+
updateDateView() - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
+
更新日期栏
+
+
updateDateView() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
更新日期栏
+
+
updateFlaglayout() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
更新旗标布局的背景色
+
+
updateSlideView() - 类 中的方法com.zhuangfei.timetable.operater.AbsOperater
+
 
+
updateSlideView() - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
+
侧边栏更新
+
+
updateSlideView() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
侧边栏更新
+
+
updateView() - 接口 中的方法com.zhuangfei.timetable.model.WeekViewEnable
+
+
当前周被改变后可以调用该方式修正一下底部的文本
+
+
updateView() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
等同于showView()
+
+
updateView() - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
当前周被改变后可以调用该方式修正一下底部的文本
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-18.html b/docs/v2.0.3/index-files/index-18.html new file mode 100644 index 0000000..d7e6c7f --- /dev/null +++ b/docs/v2.0.3/index-files/index-18.html @@ -0,0 +1,142 @@ + + + + + + +W - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

W

+
+
weekDates - 类 中的变量com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
WeekView - com.zhuangfei.timetable.view中的类
+
+
周次选择栏自定义View.
+
+
WeekView(Context) - 类 的构造器com.zhuangfei.timetable.view.WeekView
+
 
+
WeekView(Context, AttributeSet) - 类 的构造器com.zhuangfei.timetable.view.WeekView
+
 
+
WeekViewEnable<T> - com.zhuangfei.timetable.model中的接口
+
+
如果需要自定义周次选择栏,请实现该接口, + 它仅仅提供一个规范,可用可不用 + Created by Liu ZhuangFei on 2018/7/28.
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-2.html b/docs/v2.0.3/index-files/index-2.html new file mode 100644 index 0000000..c4c0c95 --- /dev/null +++ b/docs/v2.0.3/index-files/index-2.html @@ -0,0 +1,130 @@ + + + + + + +B - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

B

+
+
background - 类 中的变量com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
background - 类 中的变量com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
 
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-3.html b/docs/v2.0.3/index-files/index-3.html new file mode 100644 index 0000000..4ff5138 --- /dev/null +++ b/docs/v2.0.3/index-files/index-3.html @@ -0,0 +1,272 @@ + + + + + + +C - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

C

+
+
callback(ISchedule.OnItemLongClickListener) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置课程项长按监听器
+
+
callback(ISchedule.OnDateBuildListener) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置日期栏构建监听器
+
+
callback(ISchedule.OnWeekChangedListener) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置周次改变监听器
+
+
callback(ISchedule.OnScrollViewBuildListener) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置滚动布局构建监听器
+
+
callback(ISchedule.OnItemBuildListener) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置课程项构建监听器
+
+
callback(ISchedule.OnItemClickListener) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置Item点击监听器
+
+
callback(ISchedule.OnSlideBuildListener) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置侧边栏构建监听器
+
+
callback(ISchedule.OnSpaceItemClickListener) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置空白格子点击监听器,点击之后会出现一个旗标布局
+
+
callback(ISchedule.OnFlaglayoutClickListener) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置旗标布局点击监听器
+
+
callback(IWeekView.OnWeekItemClickedListener) - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
设置Item点击监听
+
+
callback(IWeekView.OnWeekLeftClickedListener) - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
设置左侧按钮点击监听
+
+
changeWeek(int, boolean) - 类 中的方法com.zhuangfei.timetable.operater.AbsOperater
+
 
+
changeWeek(int, boolean) - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
+
切换周次
+
+
changeWeek(int, boolean) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
周次切换
+
+
changeWeekForce(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
切换周次且修改为当前周
+
+
changeWeekOnly(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
仅仅切换周次,不修改当前周
+
+
checkPosition(int, int) - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
+
判断位置是否有课
+
+
clear() - 类 中的方法com.zhuangfei.timetable.model.ScheduleColorPool
+
+
清空颜色池,清空默认颜色
+
+
colorPool() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取颜色池
+
+
ColorUtils - com.zhuangfei.timetable.utils中的类
+
+
Created by Liu ZhuangFei on 2018/7/25.
+
+
ColorUtils() - 类 的构造器com.zhuangfei.timetable.utils.ColorUtils
+
 
+
com.zhuangfei.timetable - 程序包 com.zhuangfei.timetable
+
+
TimetableView是课表控件,主要是操作该对象进而完成对属性设置以及对视图的创建、更新
+
+
com.zhuangfei.timetable.listener - 程序包 com.zhuangfei.timetable.listener
+
+
该包中存放接口以及默认的实现类
+
+
com.zhuangfei.timetable.model - 程序包 com.zhuangfei.timetable.model
+
+
该包存放与Schedule有关的模型类
+
+
com.zhuangfei.timetable.operater - 程序包 com.zhuangfei.timetable.operater
+
+
该包存放与ScheduleOperater有关的类
+
+
com.zhuangfei.timetable.utils - 程序包 com.zhuangfei.timetable.utils
+
+
该包存放一些全局的工具方法
+
+
com.zhuangfei.timetable.view - 程序包 com.zhuangfei.timetable.view
+
+
该包存放控件实现的自定义View
+
+
compareTo(Schedule) - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
corner(int, boolean) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
课程角度设置
+
+
corner(boolean) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取课程角度
+
+
cornerAll(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置本周、非本周相同的弧度
+
+
curTerm(String) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置当前学期
+
+
curTerm() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取当前学期
+
+
curWeek(int) - 接口 中的方法com.zhuangfei.timetable.model.WeekViewEnable
+
+
设置当前周
+
+
curWeek(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置当前周
+
+
curWeek(String) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置开学时间来计算当前周
+
+
curWeek() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取当前周
+
+
curWeek(int) - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
设置当前周
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-4.html b/docs/v2.0.3/index-files/index-4.html new file mode 100644 index 0000000..a02491b --- /dev/null +++ b/docs/v2.0.3/index-files/index-4.html @@ -0,0 +1,168 @@ + + + + + + +D - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

D

+
+
data(List<Schedule>) - 接口 中的方法com.zhuangfei.timetable.model.WeekViewEnable
+
+
设置数据源
+
+
data(List<Schedule>) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置数据源
+
+
data(List<Schedule>) - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
设置数据源
+
+
dataSource() - 接口 中的方法com.zhuangfei.timetable.model.WeekViewEnable
+
+
获取数据源
+
+
dataSource() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取数据源
+
+
dataSource() - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
获取数据源
+
+
dateAlpha() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取日期栏透明度
+
+
dateArray - 类 中的变量com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
dip2px(Context, float) - 类 中的静态方法com.zhuangfei.timetable.utils.ScreenUtils
+
+
dp转换为px
+
+
dp2px(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
dp->px
+
+
drawPoint(Canvas, int, int, int, Paint) - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
+
画点
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-5.html b/docs/v2.0.3/index-files/index-5.html new file mode 100644 index 0000000..60e6200 --- /dev/null +++ b/docs/v2.0.3/index-files/index-5.html @@ -0,0 +1,152 @@ + + + + + + +F - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

F

+
+
findRealSubject(int, int, List<Schedule>) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
返回index处的课程,注意他的真实位置可能并不是index
+
+
findSubjects(Schedule, List<Schedule>) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
在data中查找与subject的start相同的课程集合
+
+
flagBgcolor(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置旗标布局背景颜色
+
+
flagBgcolor() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取旗标布局背景颜色
+
+
flagLayout - 类 中的变量com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter
+
 
+
flagLayout() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取旗标布局
+
+
fliterSchedule(List<Schedule>, int, boolean) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
根据当前周过滤课程,获取本周有效的课程(忽略重叠的)
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-6.html b/docs/v2.0.3/index-files/index-6.html new file mode 100644 index 0000000..a2c0aeb --- /dev/null +++ b/docs/v2.0.3/index-files/index-6.html @@ -0,0 +1,277 @@ + + + + + + +G - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

G

+
+
getAllSubjectsWithDay(List<Schedule>, int) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
获取某天的所有课程
+
+
getArray() - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
+
根据此数据源分析出一个二维数组.
+
+
getColor(int) - 类 中的方法com.zhuangfei.timetable.model.ScheduleColorPool
+
+
根据索引获取颜色,索引越界默认返回 Color.GRAY
+
+
getColorAuto(int) - 类 中的方法com.zhuangfei.timetable.model.ScheduleColorPool
+
+
使用模运算根据索引从颜色池中获取颜色, + 如果i<0,转换为正数, + 否则:重新计算索引j=i mod size
+
+
getColorAutoWithAlpha(int, float) - 类 中的方法com.zhuangfei.timetable.model.ScheduleColorPool
+
+
从颜色池中取指定透明度的颜色
+
+
getColorRandom() - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
getColorReflect(List<Schedule>) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
模拟分配颜色,将源数据的colorRandom属性赋值, + 然后根据该属性值在颜色池中查找颜色即可
+
+
getDataSource() - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
+
获取数据源
+
+
getDateLayout() - 类 中的方法com.zhuangfei.timetable.operater.AbsOperater
+
 
+
getDateLayout() - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
 
+
getDateStringFromWeek(int, int) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
根据需要算的周数和当前周数计算日期, + 用于周次切换时对日期的更新
+
+
getDateViews(LayoutInflater, float, float, int) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnDateBuildListener
+
+
获取View数组 + 被废弃,自v2.0.3起该方法无效
+
+
getDateViews(LayoutInflater, float, float, int) - 类 中的方法com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
getDay() - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
getExtras() - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
getFlagLayout() - 类 中的方法com.zhuangfei.timetable.operater.AbsOperater
+
 
+
getFlagLayout() - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
+
获取旗标布局
+
+
getGrayPaint() - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
+
获取暗色的画笔
+
+
getHaveSubjectsWithDay(List<Schedule>, int, int) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
获取某天有课的课程
+
+
getHeightInDp(Context) - 类 中的静态方法com.zhuangfei.timetable.utils.ScreenUtils
+
+
获取屏幕的高度Dp
+
+
getHeightInPx(Context) - 类 中的静态方法com.zhuangfei.timetable.utils.ScreenUtils
+
+
获取屏幕的高度Px
+
+
getItemText(Schedule, boolean) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnItemBuildListener
+
+
构建课程项的文本时回调.
+
+
getItemText(Schedule, boolean) - 类 中的方法com.zhuangfei.timetable.listener.OnItemBuildAdapter
+
 
+
getLightPaint() - 类 中的方法com.zhuangfei.timetable.view.PerWeekView
+
+
获取亮色的画笔
+
+
getName() - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
getPerWidth() - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
 
+
getPoolInstance() - 类 中的方法com.zhuangfei.timetable.model.ScheduleColorPool
+
+
得到颜色池的实例,即List集合
+
+
getPx(Context, int) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
内部使用的是:context.getResources().getDimensionPixelSize(dp);
+
+
getRoom() - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
getSchedule() - 接口 中的方法com.zhuangfei.timetable.model.ScheduleEnable
+
+
获取Schedule
+
+
getScrollView(LayoutInflater) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnScrollViewBuildListener
+
+
构建滚动布局时回调
+
+
getScrollView(LayoutInflater) - 类 中的方法com.zhuangfei.timetable.listener.OnScrollViewBuildAdapter
+
 
+
getStart() - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
getStep() - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
getStringArray() - 类 中的方法com.zhuangfei.timetable.listener.OnDateBuildAapter
+
+
返回一个长度为8的数组,第0个位置为null
+
+
getTeacher() - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
getTimes() - 类 中的方法com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
+
获取时刻数组
+
+
getUselessColor() - 类 中的方法com.zhuangfei.timetable.model.ScheduleColorPool
+
+
获取非本周课程颜色
+
+
getUselessColorWithAlpha(float) - 类 中的方法com.zhuangfei.timetable.model.ScheduleColorPool
+
+
获取非本周课程颜色
+
+
getView(int, LayoutInflater, int, int) - 接口 中的方法com.zhuangfei.timetable.listener.ISchedule.OnSlideBuildListener
+
+
构建每项
+
+
getView(int, LayoutInflater, int, int) - 类 中的方法com.zhuangfei.timetable.listener.OnSlideBuildAdapter
+
 
+
getWeekDate() - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
获取本周的周一-周日的所有日期
+
+
getWeekList() - 类 中的方法com.zhuangfei.timetable.model.Schedule
+
 
+
getWidthInDp(Context) - 类 中的静态方法com.zhuangfei.timetable.utils.ScreenUtils
+
+
获取屏幕的宽度Dp
+
+
getWidthInPx(Context) - 类 中的静态方法com.zhuangfei.timetable.utils.ScreenUtils
+
+
获取屏幕的宽度Px
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-7.html b/docs/v2.0.3/index-files/index-7.html new file mode 100644 index 0000000..1b5d69e --- /dev/null +++ b/docs/v2.0.3/index-files/index-7.html @@ -0,0 +1,138 @@ + + + + + + +H - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

H

+
+
hideDateView() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
将日期栏设为隐藏状态
+
+
hideFlaglayout() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
隐藏旗标布局,立即生效
+
+
hideLeftLayout() - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
隐藏左侧设置当前周的控件
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-8.html b/docs/v2.0.3/index-files/index-8.html new file mode 100644 index 0000000..e4492cd --- /dev/null +++ b/docs/v2.0.3/index-files/index-8.html @@ -0,0 +1,276 @@ + + + + + + +I - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

I

+
+
init(Context, AttributeSet, TimetableView) - 类 中的方法com.zhuangfei.timetable.operater.AbsOperater
+
 
+
init(Context, AttributeSet, TimetableView) - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
 
+
initAttr(AttributeSet) - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
+
获取自定义属性
+
+
initDateBackground() - 类 中的方法com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
initPanel() - 类 中的方法com.zhuangfei.timetable.operater.SimpleOperater
+
+
初始化panel并为panel设置事件监听
+
+
ISchedule - com.zhuangfei.timetable.listener中的接口
+
+
与Schedule有关的接口.
+
+
ISchedule.OnDateBuildListener - com.zhuangfei.timetable.listener中的接口
+
+
日期构造监听器
+
+
ISchedule.OnFlaglayoutClickListener - com.zhuangfei.timetable.listener中的接口
+
+
旗标布局点击监听器
+
+
ISchedule.OnItemBuildListener - com.zhuangfei.timetable.listener中的接口
+
+
课程项构建时回调
+
+
ISchedule.OnItemClickListener - com.zhuangfei.timetable.listener中的接口
+
+
课程项点击监听器
+
+
ISchedule.OnItemLongClickListener - com.zhuangfei.timetable.listener中的接口
+
+
课程项长按事件监听器
+
+
ISchedule.OnScrollViewBuildListener - com.zhuangfei.timetable.listener中的接口
+
+
滚动布局构建监听器
+
+
ISchedule.OnSlideBuildListener - com.zhuangfei.timetable.listener中的接口
+
+
侧边栏构建监听器
+
+
ISchedule.OnSpaceItemClickListener - com.zhuangfei.timetable.listener中的接口
+
+
空白格子点击监听器
+
+
ISchedule.OnWeekChangedListener - com.zhuangfei.timetable.listener中的接口
+
+
周次改变监听器
+
+
isShow(boolean) - 接口 中的方法com.zhuangfei.timetable.model.WeekViewEnable
+
+
设置控件的可见性
+
+
isShow(boolean) - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
设置控件的可见性
+
+
isShowFlaglayout() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取是否显示旗标布局
+
+
isShowFlaglayout(boolean) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置是否显示旗标布局
+
+
isShowing() - 接口 中的方法com.zhuangfei.timetable.model.WeekViewEnable
+
+
判断该控件是否显示
+
+
isShowing() - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
判断该控件是否显示
+
+
isShowNotCurWeek(boolean) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置是否显示非本周课程
+
+
isShowNotCurWeek() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
判断是否显示非本周课程
+
+
isShowWeekends(boolean) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
是否显示周末
+
+
isShowWeekends() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
 
+
isThisWeek(Schedule, int) - 类 中的静态方法com.zhuangfei.timetable.model.ScheduleSupport
+
+
判断该课是否为本周的
+
+
itemAlpha() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取课程项透明度
+
+
itemCount(int) - 接口 中的方法com.zhuangfei.timetable.model.WeekViewEnable
+
+
设置项数
+
+
itemCount() - 接口 中的方法com.zhuangfei.timetable.model.WeekViewEnable
+
+
获取项数
+
+
itemCount(int) - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
+
设置项数
+
+
itemCount() - 类 中的方法com.zhuangfei.timetable.view.WeekView
+
 
+
itemHeight - 类 中的变量com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter
+
 
+
itemHeight(int) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
设置课程项的高度
+
+
itemHeight() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取课程项的高度
+
+
itemTextColor(int, boolean) - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
课程项文本颜色
+
+
itemTextColorWithNotThis() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取非本周课程项文本颜色
+
+
itemTextColorWithThisWeek() - 类 中的方法com.zhuangfei.timetable.TimetableView
+
+
获取本周课程项文本颜色
+
+
itemWidth - 类 中的变量com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter
+
 
+
IWeekView - com.zhuangfei.timetable.listener中的接口
+
+
WeekView的相关接口.
+
+
IWeekView.OnWeekItemClickedListener - com.zhuangfei.timetable.listener中的接口
+
+
WeekView的Item点击监听器
+
+
IWeekView.OnWeekLeftClickedListener - com.zhuangfei.timetable.listener中的接口
+
+
WeekView的左侧(设置当前周)的点击监听器
+
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index-files/index-9.html b/docs/v2.0.3/index-files/index-9.html new file mode 100644 index 0000000..9e50647 --- /dev/null +++ b/docs/v2.0.3/index-files/index-9.html @@ -0,0 +1,130 @@ + + + + + + +L - 索引 + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M N O P R S T U W  + + +

L

+
+
layout - 类 中的变量com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
layouts - 类 中的变量com.zhuangfei.timetable.listener.OnDateBuildAapter
+
 
+
+A B C D F G H I L M N O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/index.html b/docs/v2.0.3/index.html new file mode 100644 index 0000000..7ccbe43 --- /dev/null +++ b/docs/v2.0.3/index.html @@ -0,0 +1,76 @@ + + + + + + +生成的文档 (无标题) + + + + + + + + + +<noscript> +<div>您的浏览器已禁用 JavaScript。</div> +</noscript> +<h2>框架预警</h2> +<p>请使用框架功能查看此文档。如果看到此消息, 则表明您使用的是不支持框架的 Web 客户机。链接到<a href="overview-summary.html">非框架版本</a>。</p> + + + diff --git a/docs/v2.0.3/overview-frame.html b/docs/v2.0.3/overview-frame.html new file mode 100644 index 0000000..b8b067f --- /dev/null +++ b/docs/v2.0.3/overview-frame.html @@ -0,0 +1,27 @@ + + + + + + +概览列表 + + + + + + + +

 

+ + diff --git a/docs/v2.0.3/overview-summary.html b/docs/v2.0.3/overview-summary.html new file mode 100644 index 0000000..b3c2150 --- /dev/null +++ b/docs/v2.0.3/overview-summary.html @@ -0,0 +1,166 @@ + + + + + + +概览 + + + + + + + + +
+ + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
程序包 
程序包说明
com.zhuangfei.timetable +
TimetableView是课表控件,主要是操作该对象进而完成对属性设置以及对视图的创建、更新
+
com.zhuangfei.timetable.listener +
该包中存放接口以及默认的实现类
+
com.zhuangfei.timetable.model +
该包存放与Schedule有关的模型类
+
com.zhuangfei.timetable.operater +
该包存放与ScheduleOperater有关的类
+
com.zhuangfei.timetable.utils +
该包存放一些全局的工具方法
+
com.zhuangfei.timetable.view +
该包存放控件实现的自定义View
+
+
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/overview-tree.html b/docs/v2.0.3/overview-tree.html new file mode 100644 index 0000000..047a29f --- /dev/null +++ b/docs/v2.0.3/overview-tree.html @@ -0,0 +1,194 @@ + + + + + + +类分层结构 + + + + + + + + +
+ + + + + + + +
+ + + +
+

类分层结构

+ +

接口分层结构

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/v2.0.3/package-list b/docs/v2.0.3/package-list new file mode 100644 index 0000000..b7936b6 --- /dev/null +++ b/docs/v2.0.3/package-list @@ -0,0 +1,6 @@ +com.zhuangfei.timetable +com.zhuangfei.timetable.listener +com.zhuangfei.timetable.model +com.zhuangfei.timetable.operater +com.zhuangfei.timetable.utils +com.zhuangfei.timetable.view diff --git a/docs/v2.0.3/script.js b/docs/v2.0.3/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/docs/v2.0.3/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/docs/v2.0.3/serialized-form.html b/docs/v2.0.3/serialized-form.html new file mode 100644 index 0000000..c043573 --- /dev/null +++ b/docs/v2.0.3/serialized-form.html @@ -0,0 +1,188 @@ + + + + + + +序列化表格 + + + + + + + + + + + +
+

序列化表格

+
+
+
    +
  • +

    程序包 com.zhuangfei.timetable.model

    +
      +
    • + + +

      com.zhuangfei.timetable.model.Schedule扩展java.lang.Object实现可序列化

      +
        +
      • +

        序列化字段

        +
          +
        • +

          name

          +
          java.lang.String name
          +
          课程名
          +
        • +
        • +

          room

          +
          java.lang.String room
          +
          教室
          +
        • +
        • +

          teacher

          +
          java.lang.String teacher
          +
          教师
          +
        • +
        • +

          weekList

          +
          java.util.List<E> weekList
          +
          第几周至第几周上
          +
        • +
        • +

          start

          +
          int start
          +
          开始上课的节次
          +
        • +
        • +

          step

          +
          int step
          +
          上课节数
          +
        • +
        • +

          day

          +
          int day
          +
          周几上
          +
        • +
        • +

          colorRandom

          +
          int colorRandom
          +
          一个随机数,用于对应课程的颜色
          +
        • +
        • +

          extras

          +
          java.util.Map<K,V> extras
          +
          额外信息
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+ + + + + + diff --git a/docs/v2.0.3/stylesheet.css b/docs/v2.0.3/stylesheet.css new file mode 100644 index 0000000..98055b2 --- /dev/null +++ b/docs/v2.0.3/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/images/v2.0.3/img1.jpg b/images/v2.0.3/img1.jpg new file mode 100644 index 0000000..b25120f Binary files /dev/null and b/images/v2.0.3/img1.jpg differ diff --git a/images/v2.0.3/img2.jpg b/images/v2.0.3/img2.jpg new file mode 100644 index 0000000..164279a Binary files /dev/null and b/images/v2.0.3/img2.jpg differ