diff --git a/AndroidTimetableView/.idea/caches/build_file_checksums.ser b/AndroidTimetableView/.idea/caches/build_file_checksums.ser new file mode 100644 index 0000000..542884d Binary files /dev/null and b/AndroidTimetableView/.idea/caches/build_file_checksums.ser differ diff --git a/AndroidTimetableView/.idea/codeStyles/Project.xml b/AndroidTimetableView/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..30aa626 --- /dev/null +++ b/AndroidTimetableView/.idea/codeStyles/Project.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AndroidTimetableView/.idea/misc.xml b/AndroidTimetableView/.idea/misc.xml index d4e6701..7aa454e 100644 --- a/AndroidTimetableView/.idea/misc.xml +++ b/AndroidTimetableView/.idea/misc.xml @@ -1,7 +1,7 @@ - + @@ -42,7 +42,7 @@ - + diff --git a/AndroidTimetableView/TimetableView/build.gradle b/AndroidTimetableView/TimetableView/build.gradle index 705517e..f46a54a 100644 --- a/AndroidTimetableView/TimetableView/build.gradle +++ b/AndroidTimetableView/TimetableView/build.gradle @@ -55,7 +55,7 @@ publish { repoName='Maven' groupId = 'com.zhuangfei'//jcenter上的路径 artifactId = 'TimetableView'//项目名称 - publishVersion = '2.0.2'//版本号 + publishVersion = '2.0.3'//版本号 desc = 'A beautiful Android based curriculum schedule widget'//描述,不重要 website = 'https://github.com/zfman/TimetableView'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了 } diff --git a/AndroidTimetableView/TimetableView/res/layout/view_content.xml b/AndroidTimetableView/TimetableView/res/layout/view_content.xml index 83ec502..1eeca9e 100644 --- a/AndroidTimetableView/TimetableView/res/layout/view_content.xml +++ b/AndroidTimetableView/TimetableView/res/layout/view_content.xml @@ -12,9 +12,8 @@ android:orientation="horizontal"> @@ -25,7 +24,7 @@ android:id="@+id/weekPanel_1" android:layout_width="0dp" android:layout_height="match_parent" - android:layout_weight="1.5" + android:layout_weight="1" android:layout_marginBottom="5dp" android:orientation="vertical"> @@ -33,7 +32,7 @@ android:id="@+id/weekPanel_2" android:layout_width="0dp" android:layout_height="match_parent" - android:layout_weight="1.5" + android:layout_weight="1" android:layout_marginBottom="5dp" android:orientation="vertical"> @@ -41,7 +40,7 @@ android:id="@+id/weekPanel_3" android:layout_width="0dp" android:layout_height="match_parent" - android:layout_weight="1.5" + android:layout_weight="1" android:layout_marginBottom="5dp" android:orientation="vertical"> @@ -49,7 +48,7 @@ android:id="@+id/weekPanel_4" android:layout_width="0dp" android:layout_height="match_parent" - android:layout_weight="1.5" + android:layout_weight="1" android:layout_marginBottom="5dp" android:orientation="vertical"> @@ -57,7 +56,7 @@ android:id="@+id/weekPanel_5" android:layout_width="0dp" android:layout_height="match_parent" - android:layout_weight="1.5" + android:layout_weight="1" android:layout_marginBottom="5dp" android:orientation="vertical"> @@ -65,7 +64,7 @@ android:id="@+id/weekPanel_6" android:layout_width="0dp" android:layout_height="match_parent" - android:layout_weight="1.5" + android:layout_weight="1" android:layout_marginBottom="5dp" android:orientation="vertical"> @@ -73,7 +72,7 @@ android:id="@+id/weekPanel_7" android:layout_width="0dp" android:layout_height="match_parent" - android:layout_weight="1.5" + android:layout_weight="1" android:layout_marginBottom="5dp" android:orientation="vertical"> diff --git a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/TimetableView.java b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/TimetableView.java index ad061fc..b121d68 100644 --- a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/TimetableView.java +++ b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/TimetableView.java @@ -1,19 +1,11 @@ package com.zhuangfei.timetable; import android.content.Context; -import android.content.res.TypedArray; import android.graphics.Color; -import android.graphics.drawable.GradientDrawable; import android.util.AttributeSet; -import android.util.Log; -import android.view.LayoutInflater; -import android.view.MotionEvent; import android.view.View; -import android.widget.FrameLayout; import android.widget.LinearLayout; -import android.widget.TextView; -import com.zhuangfei.android_timetableview.sample.R; import com.zhuangfei.timetable.listener.ISchedule; import com.zhuangfei.timetable.listener.OnDateBuildAapter; import com.zhuangfei.timetable.listener.OnFlaglayoutClickAdapter; @@ -27,49 +19,54 @@ import com.zhuangfei.timetable.model.Schedule; import com.zhuangfei.timetable.model.ScheduleColorPool; import com.zhuangfei.timetable.model.ScheduleEnable; +import com.zhuangfei.timetable.operater.AbsOperater; import com.zhuangfei.timetable.model.ScheduleSupport; -import com.zhuangfei.timetable.utils.ColorUtils; +import com.zhuangfei.timetable.operater.SimpleOperater; import com.zhuangfei.timetable.utils.ScreenUtils; -import java.sql.Time; import java.util.ArrayList; import java.util.List; -import java.util.Map; /** - * 课程表控件 + * 课程表控件,该类主要负责属性的设置,业务逻辑由{@link SimpleOperater}处理 + * 虽然这个类代码很多,但是都是属性设置,除了属性设置的方法: + * {@link #showView()} + * {@link #changeWeek(int, boolean)} + * {@link #changeWeekOnly(int)} + * {@link #changeWeekForce(int)} + * {@link #updateView()} + * {@link #updateSlideView()} + * {@link #updateDateView()} + * {@link #updateView()} * + * 文档参考 https://github.com/zfman/TimetableView/wiki/%E6%9C%80%E6%96%B0%E6%96%87%E6%A1%A3 * @author Administrator + * @see AbsOperater + * @see SimpleOperater */ public class TimetableView extends LinearLayout { private static final String TAG = "TimetableView"; + //业务逻辑 + private AbsOperater operater; private Context context; - // 当前周、学期 + // 当前周、学期、课程数据源 private int curWeek = 1; private String curTerm = "Term"; - - // 课程数据源 private List dataSource = null; - //布局转换器 - private LayoutInflater inflater; - private LinearLayout weekPanel;//侧边栏 - private List[] data = new ArrayList[7];//每天的课程 - private LinearLayout[] panels = new LinearLayout[7];//每天的面板 - private LinearLayout containerLayout;//根布局 - private LinearLayout dateLayout;//根布局、日期栏容器 - - //点击空白格子显示的布局:旗标布局 - private LinearLayout flagLayout; - private int flagBgcolor=Color.rgb(220,230,239);//背景颜色 - private boolean isShowFlaglayout=true; - //上边距、左边距、项高度 private int marTop, marLeft, itemHeight; + //侧边栏宽度 + private int monthWidth; + + //旗标布局背景颜色 + private int flagBgcolor = Color.rgb(220, 230, 239);//背景颜色 + private boolean isShowFlaglayout = true; + //本周、非本周的弧度 private int thisWeekCorner; private int nonThisWeekCorner; @@ -86,13 +83,13 @@ public class TimetableView extends LinearLayout { //课程项、侧边栏、日期栏的透明度,1:不透明,0:透明 private float itemAlpha = 1, slideAlpha = 1, dateAlpha = 1; - //保存点击的坐标 - private float x, y; - //课程项文本颜色 private int itemTextColorWithThisWeek = Color.WHITE;//本周 private int itemTextColorWithNotThis = Color.WHITE;//非本周 + private boolean isShowWeekends=true; + + //监听器 private ISchedule.OnWeekChangedListener onWeekChangedListener;//周次改变监听 private ISchedule.OnScrollViewBuildListener onScrollViewBuildListener;//替换滚动布局构建监听 private ISchedule.OnDateBuildListener onDateBuildListener;//日期栏构建监听 @@ -103,6 +100,61 @@ public class TimetableView extends LinearLayout { private ISchedule.OnSpaceItemClickListener onSpaceItemClickListener;//空白格子点击监听 private ISchedule.OnFlaglayoutClickListener onFlaglayoutClickListener;//旗标布局点击监听 + /** + * 是否显示周末 + * @param isShowWeekends + * @return + */ + public TimetableView isShowWeekends(boolean isShowWeekends) { + this.isShowWeekends = isShowWeekends; + return this; + } + + public boolean isShowWeekends() { + return isShowWeekends; + } + + public AbsOperater operater(){ + if(operater==null) operater=new SimpleOperater(); + return operater; + } + + public TimetableView operater(AbsOperater operater) { + this.operater = operater; + return this; + } + + /** + * 设置侧边栏宽度dp + * + * @param monthWidthDp + * @return + */ + public TimetableView monthWidthDp(int monthWidthDp) { + this.monthWidth = ScreenUtils.dip2px(context, monthWidthDp); + return this; + } + + /** + * 设置侧边栏宽度px + * + * @param monthWidthPx + * @return + */ + public TimetableView monthWidthPx(int monthWidthPx) { + this.monthWidth = monthWidthPx; + return this; + } + + /** + * 获取侧边栏宽度px + * + * @return + */ + public int monthWidth() { + return this.monthWidth; + } + /** * 课程项文本颜色 * @@ -191,55 +243,61 @@ public TimetableView alpha(float allAlpha) { /** * 设置旗标布局背景颜色 + * * @param color * @return */ - public TimetableView flagBgcolor(int color){ - this.flagBgcolor=color; + public TimetableView flagBgcolor(int color) { + this.flagBgcolor = color; return this; } /** * 重置旗标布局背景色 + * * @return */ - public TimetableView resetFlagBgcolor(){ - flagBgcolor(Color.rgb(220,230,239)); + public TimetableView resetFlagBgcolor() { + flagBgcolor(Color.rgb(220, 230, 239)); return this; } /** * 获取是否显示旗标布局 + * * @return */ - public boolean isShowFlaglayout(){ + public boolean isShowFlaglayout() { return isShowFlaglayout; } /** * 设置是否显示旗标布局 + * * @param isShowFlaglayout * @return */ - public TimetableView isShowFlaglayout(boolean isShowFlaglayout){ - this.isShowFlaglayout=isShowFlaglayout; + public TimetableView isShowFlaglayout(boolean isShowFlaglayout) { + this.isShowFlaglayout = isShowFlaglayout; return this; } /** * 获取旗标布局背景颜色 + * * @return */ - public int flagBgcolor(){ + public int flagBgcolor() { return flagBgcolor; } /** * 获取旗标布局 + * * @return */ - public LinearLayout flagLayout(){ - return flagLayout; + public LinearLayout flagLayout() { + return operater().getFlagLayout(); } /** @@ -255,10 +313,11 @@ public TimetableView callback(ISchedule.OnItemLongClickListener onItemLongClickL /** * 获取课程项长按监听器 + * * @return */ public ISchedule.OnItemLongClickListener onItemLongClickListener() { - if(onItemLongClickListener==null) onItemLongClickListener=new OnItemLongClickAdapter(); + if (onItemLongClickListener == null) onItemLongClickListener = new OnItemLongClickAdapter(); return onItemLongClickListener; } @@ -382,15 +441,18 @@ public TimetableView callback(ISchedule.OnSpaceItemClickListener onSpaceItemClic /** * 获取空白格子点击监听器 + * * @return */ public ISchedule.OnSpaceItemClickListener onSpaceItemClickListener() { - if (onSpaceItemClickListener == null) onSpaceItemClickListener = new OnSpaceItemClickAdapter(); + if (onSpaceItemClickListener == null) + onSpaceItemClickListener = new OnSpaceItemClickAdapter(); return onSpaceItemClickListener; } /** * 设置旗标布局点击监听器 + * * @param onFlaglayoutClickListener * @return */ @@ -401,10 +463,12 @@ public TimetableView callback(ISchedule.OnFlaglayoutClickListener onFlaglayoutCl /** * 获取旗标布局点击监听器 + * * @return */ public ISchedule.OnFlaglayoutClickListener onFlaglayoutClickListener() { - if (onFlaglayoutClickListener == null) onFlaglayoutClickListener = new OnFlaglayoutClickAdapter(); + if (onFlaglayoutClickListener == null) + onFlaglayoutClickListener = new OnFlaglayoutClickAdapter(); return onFlaglayoutClickListener; } @@ -703,347 +767,7 @@ public int marTop() { public TimetableView(Context context, AttributeSet attrs) { super(context, attrs); this.context = context; - inflater = LayoutInflater.from(context); - inflater.inflate(R.layout.timetable_layout, this); - containerLayout = findViewById(R.id.id_container); - dateLayout = findViewById(R.id.id_datelayout); - initAttr(attrs); - } - - /** - * 获取自定义属性 - * - * @param attrs - */ - private void initAttr(AttributeSet attrs) { - TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.TimetableView); - int curWeek = ta.getInteger(R.styleable.TimetableView_cur_week, 1); - String curTerm = ta.getString(R.styleable.TimetableView_cur_term); - - int defMarTop = (int) context.getResources().getDimension(R.dimen.weekItemMarTop); - int defMarLeft = (int) context.getResources().getDimension(R.dimen.weekItemMarLeft); - int defItemHeight = (int) context.getResources().getDimension(R.dimen.weekItemHeight); - - int marTop = (int) ta.getDimension(R.styleable.TimetableView_mar_top, defMarTop); - int marLeft = (int) ta.getDimension(R.styleable.TimetableView_mar_left, defMarLeft); - int itemHeight = (int) ta.getDimension(R.styleable.TimetableView_item_height, defItemHeight); - int thisWeekCorner = (int) ta.getDimension(R.styleable.TimetableView_thisweek_corner, 5); - int nonWeekCorner = (int) ta.getDimension(R.styleable.TimetableView_nonweek_corner, 5); - int maxSlideItem = ta.getInteger(R.styleable.TimetableView_max_slide_item, 12); - boolean isShowNotWeek = ta.getBoolean(R.styleable.TimetableView_show_notcurweek, true); - - ta.recycle(); - - curWeek(curWeek) - .curTerm(curTerm) - .marTop(marTop) - .marLeft(marLeft) - .itemHeight(itemHeight) - .corner(thisWeekCorner, true) - .corner(nonWeekCorner, false) - .maxSlideItem(maxSlideItem) - .isShowNotCurWeek(isShowNotWeek); - } - - /** - * 构建侧边栏 - * - * @param slidelayout 侧边栏的容器 - */ - private void newSlideView(LinearLayout slidelayout) { - if (slidelayout == null) return; - slidelayout.removeAllViews(); - - ISchedule.OnSlideBuildListener listener = onSlideBuildListener(); - listener.onInit(slidelayout, slideAlpha()); - for (int i = 0; i < maxSlideItem(); i++) { - View view = listener.getView(i, inflater, itemHeight(), marTop()); - slidelayout.addView(view); - } - } - - /** - * 构建课程项 - * - * @param data 某一天的数据集合 - * @param subject 当前的课程数据 - * @param pre 上一个课程数据 - * @param i 构建的索引 - * @param curWeek 当前周 - * @return View - */ - private View newItemView(final List data, final Schedule subject, Schedule pre, int i, int curWeek) { - //宽高 - int width = LinearLayout.LayoutParams.MATCH_PARENT; - int height = itemHeight() * subject.getStep() + marTop() * (subject.getStep() - 1); - - //边距 - int left = marLeft() / 2, right = marLeft() / 2; - int top = (subject.getStart() - (pre.getStart() + pre.getStep())) - * (itemHeight() + marTop()) + marTop(); - - if (i != 0 && top < 0) return null; - - // 设置Params - View view = inflater.inflate(R.layout.item_timetable, null, false); - LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(width, height); - if (i == 0) { - top = (subject.getStart() - 1) * (itemHeight() + marTop()) + marTop(); - } - lp.setMargins(left, top, right, 0); - - view.setBackgroundColor(Color.TRANSPARENT); - view.setTag(subject); - FrameLayout layout = view.findViewById(R.id.id_course_item_framelayout); - TextView textView = view.findViewById(R.id.id_course_item_course); - layout.setLayoutParams(lp); - - boolean isThisWeek = ScheduleSupport.isThisWeek(subject, curWeek); - textView.setText(onItemBuildListener().getItemText(subject, isThisWeek)); - - GradientDrawable gd = new GradientDrawable(); - if (isThisWeek) { - gd.setColor(colorPool().getColorAuto(subject.getColorRandom())); - gd.setCornerRadius(corner(true)); - } else { - gd.setColor(colorPool().getUselessColor()); - gd.setCornerRadius(corner(false)); - } - textView.setBackgroundDrawable(gd); - - textView.setOnClickListener(new OnClickListener() { - @Override - public void onClick(View v) { - List result = ScheduleSupport.findSubjects(subject, data); - onItemClickListener().onItemClick(v, result); - } - }); - - textView.setOnLongClickListener(new OnLongClickListener() { - @Override - public boolean onLongClick(View view) { - onItemLongClickListener().onLongClick(view,subject.getDay(),subject.getStart()); - return true; - } - }); - - return view; - } - - /** - * 将数据data添加到layout的布局上 - * - * @param layout 容器 - * @param data 某一天的数据集合 - * @param curWeek 当前周 - */ - private void addToLayout(LinearLayout layout, final List data, int curWeek) { - if (layout == null || data == null || data.size() < 1) return; - layout.removeAllViews(); - - //遍历 - Schedule pre = data.get(0); - for (int i = 0; i < data.size(); i++) { - final Schedule subject = data.get(i); - boolean isIgnore = filterSubject(subject, pre, i, curWeek); - if (!isIgnore) { - View view = newItemView(data, subject, pre, i, curWeek); - if (view != null) { - layout.addView(view); - pre = subject; - } - } - } - } - - /** - * 简单过滤课程 - * - * @param subject - * @param pre - * @param index - * @param curWeek - * @return - */ - private boolean filterSubject(Schedule subject, Schedule pre, int index, int curWeek) { - - if (index != 0 && ScheduleSupport.isThisWeek(subject, curWeek)) { - if (ScheduleSupport.isThisWeek(pre, curWeek)) { - if (subject.getStart() == pre.getStart()) return true; - } - } - return false; - } - - /** - * 更新课程项的视图 - * - * @param courses - * @param view - * @param preView - * @param isChange - * @param j - * @param curWeek - * @return - */ - private boolean updateItemView(final List courses, View view, View preView, boolean isChange, int j, int curWeek) { - FrameLayout layout = (FrameLayout) view.findViewById(R.id.id_course_item_framelayout); - Schedule tag = (Schedule) view.getTag(); - Schedule subject = ScheduleSupport.findRealSubject(tag.getStart(), curWeek, courses); - - boolean isThisWeek = ScheduleSupport.isThisWeek(subject, curWeek); - if (!isThisWeek && !isShowNotCurWeek()) { - view.setVisibility(View.INVISIBLE); - } else { - view.setVisibility(View.VISIBLE); - } - - int height = itemHeight() * subject.getStep() + - marTop() * (subject.getStep() - 1); - int leftOrRight = marLeft() / 2; - int top = 0; - - LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( - LinearLayout.LayoutParams.MATCH_PARENT, height); - - if (isChange || tag.getStart() != subject.getStart() || tag.getStep() != subject.getStep()) { - if (j > 0) { - Schedule pre = (Schedule) preView.getTag(); - top = (subject.getStart() - (pre.getStart() + pre.getStep())) * (itemHeight() - + marTop()) + marTop(); - } else { - top = (subject.getStart() - 1) * (itemHeight() + marTop()) + marTop(); - } - lp.setMargins(leftOrRight, top, leftOrRight, 0); - layout.setLayoutParams(lp); - view.setTag(subject); - isChange = true; - } - - if (top < 0) view.setVisibility(View.GONE); - TextView textView = (TextView) view.findViewById(R.id.id_course_item_course); - TextView countTextView = (TextView) view.findViewById(R.id.id_course_item_count); - textView.setText(onItemBuildListener().getItemText(subject, isThisWeek)); - - countTextView.setText(""); - countTextView.setVisibility(View.GONE); - - GradientDrawable gd = new GradientDrawable(); - if (isThisWeek) { - textView.setTextColor(itemTextColorWithThisWeek()); - gd.setColor(colorPool().getColorAutoWithAlpha(subject.getColorRandom(), itemAlpha())); - gd.setCornerRadius(corner(true)); - - int count = 0; - List result = ScheduleSupport.findSubjects(subject, courses); - for (Schedule bean : result) { - if (ScheduleSupport.isThisWeek(bean, curWeek)) { - count++; - } - } - if (count > 1) { - countTextView.setVisibility(View.VISIBLE); - countTextView.setText(count + ""); - } - } else { - textView.setTextColor(itemTextColorWithNotThis()); - gd.setColor(colorPool().getUselessColorWithAlpha(itemAlpha())); - gd.setCornerRadius(corner(false)); - } - - textView.setBackgroundDrawable(gd); - onItemBuildListener().onItemUpdate(layout, textView, countTextView, subject, gd); - return isChange; - } - - - /** - * 周次切换 - */ - private void changeWeek(LinearLayout[] panels, List[] data, int curWeek) { - for (int i = 0; i < panels.length; i++) { - List courses = data[i]; - boolean isChange = false; - for (int j = 0; j < panels[i].getChildCount(); j++) { - View view = panels[i].getChildAt(j); - View preView; - if (j > 0) preView = panels[i].getChildAt(j - 1); - else preView = null; - isChange = updateItemView(courses, view, preView, isChange, j, curWeek); - } - } - } - - /** - * 点击panel时的事件响应 - */ - private void onPanelClicked(View view, float y) { - if(isShowFlaglayout()){ - flagLayout.setVisibility(VISIBLE); - }else{ - flagLayout.setVisibility(GONE); - } - - //周几,0:周一,6:周日 - int day = 0; - - // 先找到点击的是周几的panel - for (int i = 0; i < panels.length; i++) { - if (view == panels[i]) { - day = i; - break; - } - } - - if (day == -1) - return; - - // 判断点击的是第几节课,1:第1节 - final int start = (int) Math.ceil((y / (itemHeight + marTop))); - onSpaceItemClickListener().onSpaceItemClick(day,start); - final int finalDay = day; - flagLayout.setOnClickListener(new OnClickListener() { - @Override - public void onClick(View view) { - onFlaglayoutClickListener().onFlaglayoutClick(finalDay,start); - } - }); - } - - /** - * 初始化panel并为panel设置事件监听 - */ - private void initPanel() { - for (int i = 0; i < panels.length; i++) { - panels[i] = findViewById(R.id.weekPanel_1 + i); - data[i] = new ArrayList<>(); - - /** - * 点击空白格子时才会触发这个事件 - */ - panels[i].setOnTouchListener(new OnTouchListener() { - - @Override - public boolean onTouch(View arg0, MotionEvent arg1) { - switch (arg1.getAction()) { - case MotionEvent.ACTION_DOWN: - x = arg1.getX(); - y = arg1.getY(); - - break; - case MotionEvent.ACTION_UP: - float x2 = arg1.getX(); - float y2 = arg1.getY(); - if (x2 == x && y2 == y) - onPanelClicked(arg0, arg1.getY()); - break; - default: - break; - } - return true; - } - }); - } + operater().init(context,attrs,this); } /** @@ -1059,16 +783,17 @@ public void updateView() { * 隐藏旗标布局,立即生效 */ public TimetableView hideFlaglayout() { - flagLayout.setVisibility(GONE); + flagLayout().setVisibility(GONE); return this; } /** * 显示旗标布局,立即生效 + * * @return */ public TimetableView showFlaglayout() { - flagLayout.setVisibility(VISIBLE); + flagLayout().setVisibility(VISIBLE); return this; } @@ -1079,7 +804,7 @@ public TimetableView showFlaglayout() { * @return */ public void hideDateView() { - dateLayout.setVisibility(View.GONE); + operater().getDateLayout().setVisibility(View.GONE); } /** @@ -1088,81 +813,21 @@ public void hideDateView() { * @return */ public void showDateView() { - dateLayout.setVisibility(View.VISIBLE); - } - - /** - * 绘制课程表 - */ - public void showView() { - if (dataSource() == null) return; - - //实现ScrollView的替换,只有在初始化时替换一次 - if (findViewById(R.id.id_scrollview) == null) { - View view = onScrollViewBuildListener().getScrollView(inflater); - containerLayout.addView(view); - //初始化 - weekPanel = findViewById(R.id.weekPanel_0); - flagLayout=findViewById(R.id.id_flaglayout); - initPanel(); - } - - flagLayout.setBackgroundColor(flagBgcolor()); - float perWidth = ScreenUtils.getWidthInPx(context) / 11.5f; - onSpaceItemClickListener().onInit(flagLayout, Math.round(perWidth), - Math.round(perWidth*1.5f),itemHeight(),marTop(), - Math.round(marLeft()/2.0f)); - - //更新日期 - updateDateView(); - updateSlideView(); - - //清空、拆分数据 - for (int i = 0; i < 7; i++) { - data[i].clear(); - } - List source = dataSource(); - for (int i = 0; i < source.size(); i++) { - Schedule bean = source.get(i); - if (bean.getDay() != -1) - data[bean.getDay() - 1].add(bean); - } - - //排序、填充课程 - ScheduleSupport.sortList(data); - for (int i = 0; i < panels.length; i++) { - panels[i].removeAllViews(); - addToLayout(panels[i], data[i], curWeek()); - } - //周次切换,保证重叠时显示角标 - changeWeek(curWeek(), false); + operater().getDateLayout().setVisibility(View.VISIBLE); } /** * 更新日期栏 */ public void updateDateView() { - dateLayout.removeAllViews(); - float perWidth = ScreenUtils.getWidthInPx(context) / 11.5f; - int height = context.getResources().getDimensionPixelSize(R.dimen.headHeight); -// //日期栏 - ISchedule.OnDateBuildListener listener = onDateBuildListener(); - listener.onInit(dateLayout, dateAlpha()); - View[] views = onDateBuildListener().getDateViews(inflater, perWidth, height); - for (View v : views) { - if (v != null) { - dateLayout.addView(v); - } - } - onDateBuildListener().onUpdateDate(curWeek(), curWeek()); - onDateBuildListener().onHighLight(); + operater().updateDateView(); } /** * 侧边栏更新 */ public void updateSlideView() { - newSlideView(weekPanel); + operater().updateSlideView(); } /** @@ -1172,8 +837,7 @@ public void updateSlideView() { * @param isCurWeek 是否强制设置为本周 */ public void changeWeek(int week, boolean isCurWeek) { - if (isCurWeek) changeWeekForce(week); - else changeWeekOnly(week); + operater().changeWeek(week,isCurWeek); } /** @@ -1182,8 +846,7 @@ public void changeWeek(int week, boolean isCurWeek) { * @param week */ public void changeWeekOnly(int week) { - changeWeek(panels, data, week); - onWeekChangedListener().onWeekChanged(week); + operater().changeWeek(week,false); } /** @@ -1192,15 +855,18 @@ public void changeWeekOnly(int week) { * @param week */ public void changeWeekForce(int week) { - changeWeek(panels, data, week); - curWeek(week); + operater().changeWeek(week,true); } /** * 更新旗标布局的背景色 */ - public void updateFlaglayout(){ - flagLayout.setBackgroundColor(flagBgcolor()); - if(!isShowFlaglayout()) hideFlaglayout(); + public void updateFlaglayout() { + flagLayout().setBackgroundColor(flagBgcolor()); + if (!isShowFlaglayout()) hideFlaglayout(); + } + + public void showView(){ + operater().showView(); } } diff --git a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/ISchedule.java b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/ISchedule.java index 181b27b..eb87d30 100644 --- a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/ISchedule.java +++ b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/ISchedule.java @@ -176,13 +176,15 @@ interface OnDateBuildListener { /** * 获取View数组 + * 被废弃,自v2.0.3起该方法无效 * * @param mInflate 转换器 - * @param perWidth 每个单位的宽度,月份占1个单位,其余为1.5个单位 + * @param monthWidth 月份宽度px + * @param perWidth 日期每项宽度px * @param height 默认的日期栏高度 * @return */ - View[] getDateViews(LayoutInflater mInflate, float perWidth, int height); + View[] getDateViews(LayoutInflater mInflate, float monthWidth,float perWidth, int height); /** * 为日期栏设置高亮时回调 diff --git a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnDateBuildAapter.java b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnDateBuildAapter.java index 82bc993..0d6a694 100644 --- a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnDateBuildAapter.java +++ b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnDateBuildAapter.java @@ -30,7 +30,7 @@ public class OnDateBuildAapter implements ISchedule.OnDateBuildListener { protected TextView[] textViews = new TextView[8]; protected LinearLayout[] layouts = new LinearLayout[8]; - private int background = Color.parseColor("#F4F8F8"); + protected int background = Color.parseColor("#F4F8F8"); protected float alpha = 1; protected String[] dateArray; @@ -45,23 +45,20 @@ public OnDateBuildAapter setBackground(int background) { @Override public void onInit(LinearLayout layout, float alpha) { this.alpha = alpha; - this.layout=layout; + this.layout = layout; //星期设置 - dateArray=getStringArray(); + dateArray = getStringArray(); weekDates = ScheduleSupport.getWeekDate(); int alphaColor = ColorUtils.alphaColor(background, alpha); if (layout != null) layout.setBackgroundColor(alphaColor); } @Override - public View[] getDateViews(LayoutInflater mInflate, float perWidth, int height) { + public View[] getDateViews(LayoutInflater mInflate, float monthWidth, float perWidth, int height) { View[] views = new View[8]; - - //月份占1份的宽度 - views[0] = onBuildMonthLayout(mInflate,(int)perWidth,height); - + views[0] = onBuildMonthLayout(mInflate, (int) monthWidth, height); for (int i = 1; i < 8; i++) { - views[i]=onBuildDayLayout(mInflate,i,(int)(perWidth*1.5),height); + views[i] = onBuildDayLayout(mInflate, i, (int) perWidth, height); } return views; } @@ -87,16 +84,15 @@ public void onHighLight() { } - @Override - public void onUpdateDate(int curWeek,int targetWeek) { + public void onUpdateDate(int curWeek, int targetWeek) { if (textViews == null || textViews.length < 8) return; - weekDates = ScheduleSupport.getDateStringFromWeek(curWeek,targetWeek); + weekDates = ScheduleSupport.getDateStringFromWeek(curWeek, targetWeek); int month = Integer.parseInt(weekDates.get(0)); textViews[0].setText(month + "\n月"); for (int i = 1; i < 8; i++) { - if(textViews[i]!=null){ + if (textViews[i] != null) { textViews[i].setText(weekDates.get(i) + "日"); } } @@ -111,7 +107,7 @@ public void onUpdateDate(int curWeek,int targetWeek) { * @param height 默认高度 * @return */ - public View onBuildMonthLayout(LayoutInflater mInflate, int width, int height) { + protected View onBuildMonthLayout(LayoutInflater mInflate, int width, int height) { View first = mInflate.inflate(R.layout.item_dateview_first, null, false); //月份设置 textViews[0] = first.findViewById(R.id.id_week_month); @@ -125,7 +121,7 @@ public View onBuildMonthLayout(LayoutInflater mInflate, int width, int height) { return first; } - public View onBuildDayLayout(LayoutInflater mInflate,int pos, int width, int height) { + protected View onBuildDayLayout(LayoutInflater mInflate, int pos, int width, int height) { View v = mInflate.inflate(R.layout.item_dateview, null, false); TextView dayTextView = v.findViewById(R.id.id_week_day); dayTextView.setText(dateArray[pos]); @@ -142,20 +138,23 @@ public View onBuildDayLayout(LayoutInflater mInflate,int pos, int width, int hei /** * 返回一个长度为8的数组,第0个位置为null + * * @return */ - public String[] getStringArray(){ - return new String[]{null,"周一", "周二", "周三", "周四", "周五", "周六", "周日"}; + public String[] getStringArray() { + return new String[]{null, "周一", "周二", "周三", "周四", "周五", "周六", "周日"}; } - public void initDateBackground(){ + protected void initDateBackground() { for (int i = 1; i < 8; i++) { - layouts[i].setBackgroundColor(Color.TRANSPARENT); + if (layouts[i] != null) layouts[i].setBackgroundColor(Color.TRANSPARENT); } } - private void activeDateBackground(int weekDay) { - layouts[weekDay].setBackgroundColor( - ColorUtils.alphaColor(Color.parseColor("#BFF6F4"), alpha)); + protected void activeDateBackground(int weekDay) { + if (layouts.length > weekDay && layouts[weekDay] != null) { + layouts[weekDay].setBackgroundColor( + ColorUtils.alphaColor(Color.parseColor("#BFF6F4"), alpha)); + } } } diff --git a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnItemBuildAdapter.java b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnItemBuildAdapter.java index 8737b7e..899785c 100644 --- a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnItemBuildAdapter.java +++ b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnItemBuildAdapter.java @@ -14,10 +14,16 @@ public class OnItemBuildAdapter implements ISchedule.OnItemBuildListener { @Override public String getItemText(Schedule schedule, boolean isThisWeek) { - if(schedule==null||schedule.getName()==null||schedule.getRoom()==null) return "default"; - String r=schedule.getName()+"@"+schedule.getRoom(); - if(!isThisWeek){ - r="[非本周]"+r; + if (schedule == null || TextUtils.isEmpty(schedule.getName())) return "未命名"; + if (schedule.getRoom() == null) { + if (!isThisWeek) + return "[非本周]" + schedule.getName(); + return schedule.getName(); + } + + String r = schedule.getName() + "@" + schedule.getRoom(); + if (!isThisWeek) { + r = "[非本周]" + r; } return r; } diff --git a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnItemClickAdapter.java b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnItemClickAdapter.java index 437e18a..3401af6 100644 --- a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnItemClickAdapter.java +++ b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnItemClickAdapter.java @@ -15,6 +15,5 @@ public class OnItemClickAdapter implements ISchedule.OnItemClickListener { private static final String TAG = "OnItemClickAdapter"; @Override public void onItemClick(View v, List scheduleList) { - Log.d(TAG, "onItemClick: "); } } diff --git a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnSlideBuildAdapter.java b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnSlideBuildAdapter.java index 0847fa1..be3c2e0 100644 --- a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnSlideBuildAdapter.java +++ b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/listener/OnSlideBuildAdapter.java @@ -18,15 +18,15 @@ public class OnSlideBuildAdapter implements ISchedule.OnSlideBuildListener { //时刻,每个元素保存每节课的开始时间 - private String[] times; + protected String[] times; //节次文本的颜色、字号 - private int textColor= Color.BLACK; - private float textSize=14; + protected int textColor= Color.BLACK; + protected float textSize=14; //时刻文本的颜色、字号 - private float timeTextSize=12; - private int timeTextColor=Color.GRAY; + protected float timeTextSize=12; + protected int timeTextColor=Color.GRAY; //侧边栏背景色 protected int background=Color.WHITE; diff --git a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/model/Schedule.java b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/model/Schedule.java index 09de7da..3ec866f 100644 --- a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/model/Schedule.java +++ b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/model/Schedule.java @@ -12,7 +12,7 @@ * @author Administrator 刘壮飞 * */ -public class Schedule implements Serializable{ +public class Schedule implements Serializable,Comparable{ /** * 课程名 @@ -154,4 +154,14 @@ public Schedule() { super(); } + @Override + public int compareTo(Schedule o) { + if(getStart() getDateStringFromCalendar(Calendar calendar) { calendar.add(Calendar.DAY_OF_MONTH, -1); } calendar.setFirstDayOfWeek(Calendar.MONDAY); - dateList.add((calendar.get(Calendar.MONTH) + 1)+""); + dateList.add((calendar.get(Calendar.MONTH) + 1) + ""); for (int i = 0; i < 7; i++) { - dateList.add(calendar.get(Calendar.DAY_OF_MONTH)+""); + dateList.add(calendar.get(Calendar.DAY_OF_MONTH) + ""); calendar.add(Calendar.DAY_OF_MONTH, 1); } return dateList; @@ -167,6 +174,7 @@ public static List getColorReflect(List schedules) { /** * 内部使用的是:context.getResources().getDimensionPixelSize(dp); + * * @param context * @param dp * @return @@ -298,17 +306,23 @@ public static void sortList(List[] data) { int min; Schedule tmp; for (int i = 0; i < data.length; i++) - for (int m = 0; m < data[i].size() - 1; m++) { - min = m; - for (int k = m + 1; k < data[i].size(); k++){ - if (data[i].get(min).getStart() > data[i].get(k).getStart()) { - min = k; - } + sortList(data[i]); + } + + public static void sortList(List data) { + int min; + Schedule tmp; + for (int m = 0; m < data.size() - 1; m++) { + min = m; + for (int k = m + 1; k < data.size(); k++) { + if (data.get(min).getStart() > data.get(k).getStart()) { + min = k; } - tmp = data[i].get(m); - data[i].set(m, data[i].get(min)); - data[i].set(min, tmp); } + tmp = data.get(m); + data.set(m, data.get(min)); + data.set(min, tmp); + } } /** @@ -322,4 +336,61 @@ public static boolean isThisWeek(Schedule subject, int cur_week) { if (weekList.indexOf(cur_week) != -1) return true; return false; } + + /** + * 根据当前周过滤课程,获取本周有效的课程(忽略重叠的) + * + * @param data + * @param curWeek + * @return + */ + public static List fliterSchedule(List data, int curWeek, boolean isShowNotCurWeek) { + List filterData = new ArrayList<>(); + if (data == null) return filterData; + + if (isShowNotCurWeek) filterData = data; + else { + for (Schedule schedule : data) { + if (ScheduleSupport.isThisWeek(schedule, curWeek)) { + filterData.add(schedule); + } + } + } + Set result = new HashSet<>(); + for (int i = 0; i < filterData.size(); i++) { + Schedule s = filterData.get(i); + if (s != null) { + s.putExtras("zfman_count", 0); + } + } + + if (data.size() >= 1) { + result.add(data.get(0)); + } + + for (int i = 1; i < data.size(); i++) { + Schedule s = data.get(i); + for (int j = 0; j < i; j++) { + Schedule s2 = data.get(j); + if (s.getStart() <= (s2.getStart() + s2.getStep() - 1)) { + if (!ScheduleSupport.isThisWeek(s2, curWeek)) { + if (ScheduleSupport.isThisWeek(s, curWeek)) { + result.remove(s2); + result.add(s); + } + } else { + if (ScheduleSupport.isThisWeek(s, curWeek)) { + s.putExtras("zfman_count", (int) (s.getExtras().get("zfman_count")) + 1); + s2.putExtras("zfman_count", (int) (s2.getExtras().get("zfman_count")) + 1); + } + } + } else { + result.add(s); + } + } + } + List list = new ArrayList<>(result); + sortList(list); + return list; + } } \ No newline at end of file diff --git a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/model/WeekViewEnable.java b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/model/WeekViewEnable.java index 93bdcde..71b0585 100644 --- a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/model/WeekViewEnable.java +++ b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/model/WeekViewEnable.java @@ -1,18 +1,5 @@ package com.zhuangfei.timetable.model; -import android.content.Context; -import android.util.AttributeSet; -import android.util.Log; -import android.view.LayoutInflater; -import android.view.View; -import android.widget.LinearLayout; -import android.widget.TextView; - -import com.zhuangfei.android_timetableview.sample.R; -import com.zhuangfei.timetable.view.PerWeekView; -import com.zhuangfei.timetable.view.WeekView; - -import java.util.ArrayList; import java.util.List; /** @@ -77,7 +64,7 @@ public interface WeekViewEnable { * 设置控件的可见性 * @param isShow true:显示,false:隐藏 */ - WeekView isShow(boolean isShow); + T isShow(boolean isShow); /** * 判断该控件是否显示 diff --git a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/operater/AbsOperater.java b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/operater/AbsOperater.java new file mode 100644 index 0000000..204c7b8 --- /dev/null +++ b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/operater/AbsOperater.java @@ -0,0 +1,29 @@ +package com.zhuangfei.timetable.operater; + +import android.content.Context; +import android.util.AttributeSet; +import android.widget.LinearLayout; + +import com.zhuangfei.timetable.TimetableView; + +/** + * 抽象的业务逻辑 + * Created by Liu ZhuangFei on 2018/9/2. + */ +public abstract class AbsOperater { + public void init(Context context, AttributeSet attrs, TimetableView view){}; + + public void showView(){}; + + public void updateDateView(){}; + + public void updateSlideView(){}; + + public void changeWeek(int week, boolean isCurWeek){}; + + public LinearLayout getFlagLayout(){return null;}; + + public LinearLayout getDateLayout(){return null;}; + + public void setWeekendsVisiable(boolean isShow){}; +} diff --git a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/operater/SimpleOperater.java b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/operater/SimpleOperater.java new file mode 100644 index 0000000..4d28355 --- /dev/null +++ b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/operater/SimpleOperater.java @@ -0,0 +1,462 @@ +package com.zhuangfei.timetable.operater; + +import android.content.Context; +import android.content.res.TypedArray; +import android.graphics.Color; +import android.graphics.drawable.GradientDrawable; +import android.util.AttributeSet; +import android.util.Log; +import android.view.LayoutInflater; +import android.view.MotionEvent; +import android.view.View; +import android.widget.FrameLayout; +import android.widget.LinearLayout; +import android.widget.TextView; + +import com.zhuangfei.android_timetableview.sample.R; +import com.zhuangfei.timetable.TimetableView; +import com.zhuangfei.timetable.listener.ISchedule; +import com.zhuangfei.timetable.model.Schedule; +import com.zhuangfei.timetable.model.ScheduleSupport; +import com.zhuangfei.timetable.utils.ScreenUtils; + +import java.util.ArrayList; +import java.util.List; + +/** + * 课表业务操作者,TimetableView中只涉及属性的设置,方法的具体实现在这里. + * 常用的方法也就四个,如下 + * + * @see SimpleOperater#changeWeek(int, boolean) + * @see SimpleOperater#showView() + * @see SimpleOperater#updateDateView() + * @see SimpleOperater#updateSlideView() + * + * Created by Liu ZhuangFei on 2018/9/1. + */ +public class SimpleOperater extends AbsOperater{ + + private TimetableView mView; + private Context context; + + //保存点击的坐标 + private float x, y; + + //布局转换器 + private LayoutInflater inflater; + private LinearLayout weekPanel;//侧边栏 + private List[] data = new ArrayList[7];//每天的课程 + private LinearLayout[] panels = new LinearLayout[7];//每天的面板 + private LinearLayout containerLayout;//根布局 + private LinearLayout dateLayout;//根布局、日期栏容器 + private LinearLayout flagLayout;//旗标布局 + + @Override + public void init(Context context, AttributeSet attrs, TimetableView view) { + this.context = context; + mView = view; + inflater = LayoutInflater.from(context); + inflater.inflate(R.layout.timetable_layout, mView); + containerLayout = mView.findViewById(R.id.id_container); + dateLayout = mView.findViewById(R.id.id_datelayout); + mView.monthWidthDp(40); + initAttr(attrs); + } + + /** + * 获取自定义属性 + * + * @param attrs + */ + protected void initAttr(AttributeSet attrs) { + TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.TimetableView); + int curWeek = ta.getInteger(R.styleable.TimetableView_cur_week, 1); + String curTerm = ta.getString(R.styleable.TimetableView_cur_term); + + int defMarTop = (int) context.getResources().getDimension(R.dimen.weekItemMarTop); + int defMarLeft = (int) context.getResources().getDimension(R.dimen.weekItemMarLeft); + int defItemHeight = (int) context.getResources().getDimension(R.dimen.weekItemHeight); + + int marTop = (int) ta.getDimension(R.styleable.TimetableView_mar_top, defMarTop); + int marLeft = (int) ta.getDimension(R.styleable.TimetableView_mar_left, defMarLeft); + int itemHeight = (int) ta.getDimension(R.styleable.TimetableView_item_height, defItemHeight); + int thisWeekCorner = (int) ta.getDimension(R.styleable.TimetableView_thisweek_corner, 5); + int nonWeekCorner = (int) ta.getDimension(R.styleable.TimetableView_nonweek_corner, 5); + int maxSlideItem = ta.getInteger(R.styleable.TimetableView_max_slide_item, 12); + boolean isShowNotWeek = ta.getBoolean(R.styleable.TimetableView_show_notcurweek, true); + + ta.recycle(); + + mView.curWeek(curWeek) + .curTerm(curTerm) + .marTop(marTop) + .marLeft(marLeft) + .itemHeight(itemHeight) + .corner(thisWeekCorner, true) + .corner(nonWeekCorner, false) + .maxSlideItem(maxSlideItem) + .isShowNotCurWeek(isShowNotWeek); + } + + @Override + public LinearLayout getDateLayout() { + return dateLayout; + } + + /** + * 获取旗标布局 + * @return + */ + @Override + public LinearLayout getFlagLayout(){ + return flagLayout; + } + + /** + * 构建侧边栏 + * + * @param slidelayout 侧边栏的容器 + */ + public void newSlideView(LinearLayout slidelayout) { + if (slidelayout == null) return; + slidelayout.removeAllViews(); + + ISchedule.OnSlideBuildListener listener = mView.onSlideBuildListener(); + listener.onInit(slidelayout, mView.slideAlpha()); + for (int i = 0; i < mView.maxSlideItem(); i++) { + View view = listener.getView(i, inflater, mView.itemHeight(), mView.marTop()); + slidelayout.addView(view); + } + } + + /** + * 构建课程项 + * + * @param data 某一天的数据集合 + * @param subject 当前的课程数据 + * @param pre 上一个课程数据 + * @param i 构建的索引 + * @param curWeek 当前周 + * @return View + */ + private View newItemView(final List data, final Schedule subject, Schedule pre, int i, int curWeek) { + //宽高 + int width = LinearLayout.LayoutParams.MATCH_PARENT; + int height = mView.itemHeight() * subject.getStep() + mView.marTop() * (subject.getStep() - 1); + + //边距 + int left = mView.marLeft() / 2, right = mView.marLeft() / 2; + int top = (subject.getStart() - (pre.getStart() + pre.getStep())) + * (mView.itemHeight() + mView.marTop()) + mView.marTop(); + + if (i != 0 && top < 0) return null; + + // 设置Params + View view = inflater.inflate(R.layout.item_timetable, null, false); + + LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(width, height); + if (i == 0) { + top = (subject.getStart() - 1) * (mView.itemHeight() + mView.marTop()) + mView.marTop(); + } + lp.setMargins(left, top, right, 0); + + view.setBackgroundColor(Color.TRANSPARENT); + view.setTag(subject); + FrameLayout layout = view.findViewById(R.id.id_course_item_framelayout); + layout.setLayoutParams(lp); + + boolean isThisWeek = ScheduleSupport.isThisWeek(subject, curWeek); + TextView textView = (TextView) view.findViewById(R.id.id_course_item_course); + TextView countTextView = (TextView) view.findViewById(R.id.id_course_item_count); + textView.setText(mView.onItemBuildListener().getItemText(subject, isThisWeek)); + + countTextView.setText(""); + countTextView.setVisibility(View.GONE); + + GradientDrawable gd = new GradientDrawable(); + if (isThisWeek) { + textView.setTextColor(mView.itemTextColorWithThisWeek()); + gd.setColor(mView.colorPool().getColorAutoWithAlpha(subject.getColorRandom(), mView.itemAlpha())); + gd.setCornerRadius(mView.corner(true)); + + int count = (int) subject.getExtras().get("zfman_count"); + if (count > 1) { + countTextView.setVisibility(View.VISIBLE); + countTextView.setText(count + ""); + } + } else { + textView.setTextColor(mView.itemTextColorWithNotThis()); + gd.setColor(mView.colorPool().getUselessColorWithAlpha(mView.itemAlpha())); + gd.setCornerRadius(mView.corner(false)); + } + + textView.setBackgroundDrawable(gd); + mView.onItemBuildListener().onItemUpdate(layout, textView, countTextView, subject, gd); + + textView.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + List result = ScheduleSupport.findSubjects(subject, data); + mView.onItemClickListener().onItemClick(v, result); + } + }); + + textView.setOnLongClickListener(new View.OnLongClickListener() { + @Override + public boolean onLongClick(View view) { + mView.onItemLongClickListener().onLongClick(view, subject.getDay(), subject.getStart()); + return true; + } + }); + + return view; + } + + /** + * 将数据data添加到layout的布局上 + * + * @param layout 容器 + * @param data 某一天的数据集合 + * @param curWeek 当前周 + */ + private void addToLayout(LinearLayout layout, final List data, int curWeek) { + if (layout == null || data == null || data.size() < 1) return; + layout.removeAllViews(); + + //遍历 + Schedule pre = data.get(0); + List filter = ScheduleSupport.fliterSchedule(data, curWeek,mView.isShowNotCurWeek()); + layout.setTag(filter.size()); + for (int i = 0; i < filter.size(); i++) { + final Schedule subject = filter.get(i); + View view = newItemView(filter, subject, pre, i, curWeek); + if (view != null) { + layout.addView(view); + pre = subject; + } + } + } + + + /** + * 点击panel时的事件响应 + */ + protected void onPanelClicked(View view, float y) { + if(mView.isShowFlaglayout()){ + flagLayout.setVisibility(View.VISIBLE); + }else{ + flagLayout.setVisibility(View.GONE); + } + + //周几,0:周一,6:周日 + int day = 0; + + // 先找到点击的是周几的panel + for (int i = 0; i < panels.length; i++) { + if (view == panels[i]) { + day = i; + break; + } + } + + if (day == -1) + return; + + // 判断点击的是第几节课,1:第1节 + final int start = (int) Math.ceil((y / (mView.itemHeight() + mView.marTop()))); + if(!checkPosition(day,start)){ + mView.onSpaceItemClickListener().onSpaceItemClick(day,start); + } + final int finalDay = day; + flagLayout.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + mView.onFlaglayoutClickListener().onFlaglayoutClick(finalDay,start); + } + }); + } + + /** + * 判断位置是否有课 + * @param day + * @param start + * @return true:有课,false:无课 + */ + protected boolean checkPosition(int day,int start){ + List list; + if(mView.isShowNotCurWeek()){ + list= ScheduleSupport.getAllSubjectsWithDay(mView.dataSource(),day); + }else{ + list= ScheduleSupport.getHaveSubjectsWithDay(mView.dataSource(),mView.curWeek(),day); + } + boolean isHave=false; + for(Schedule item:list){ + if(start==item.getStart()||(start>=item.getStart()&&start<=(item.getStart()+item.getStep()-1))){ + isHave=true; + } + } + return isHave; + } + + /** + * 初始化panel并为panel设置事件监听 + */ + protected void initPanel() { + for (int i = 0; i < panels.length; i++) { + panels[i] = mView.findViewById(R.id.weekPanel_1 + i); + data[i] = new ArrayList<>(); + + /** + * 点击空白格子时才会触发这个事件 + */ + panels[i].setOnTouchListener(new View.OnTouchListener() { + + @Override + public boolean onTouch(View arg0, MotionEvent arg1) { + switch (arg1.getAction()) { + case MotionEvent.ACTION_DOWN: + x = arg1.getX(); + y = arg1.getY(); + + break; + case MotionEvent.ACTION_UP: + float x2 = arg1.getX(); + float y2 = arg1.getY(); + if (x2 == x && y2 == y) + onPanelClicked(arg0, arg1.getY()); + break; + default: + break; + } + return true; + } + }); + } + } + + /** + * 绘制课程表 + */ + @Override + public void showView() { + if (mView.dataSource() == null) return; + + //实现ScrollView的替换,只有在初始化时替换一次 + if (mView.findViewById(R.id.id_scrollview) == null) { + View view = mView.onScrollViewBuildListener().getScrollView(inflater); + containerLayout.addView(view); + //初始化 + weekPanel = mView.findViewById(R.id.weekPanel_0); + flagLayout=mView.findViewById(R.id.id_flaglayout); + initPanel(); + } + + LinearLayout.LayoutParams lp=new LinearLayout.LayoutParams(mView.monthWidth(), LinearLayout.LayoutParams.MATCH_PARENT); + weekPanel.setLayoutParams(lp); + flagLayout.setBackgroundColor(mView.flagBgcolor()); + float perWidth=getPerWidth(); + + mView.onSpaceItemClickListener().onInit(flagLayout, mView.monthWidth(), + Math.round(perWidth),mView.itemHeight(),mView.marTop(), + Math.round(mView.marLeft()/2.0f)); + + + setWeekendsVisiable(mView.isShowWeekends()); + + //更新日期 + updateDateView(); + updateSlideView(); + + //清空、拆分数据 + for (int i = 0; i < 7; i++) { + data[i].clear(); + } + List source = mView.dataSource(); + for (int i = 0; i < source.size(); i++) { + Schedule bean = source.get(i); + if (bean.getDay() != -1) + data[bean.getDay() - 1].add(bean); + } + + //排序、填充课程 + ScheduleSupport.sortList(data); + for (int i = 0; i < panels.length; i++) { + panels[i].removeAllViews(); + addToLayout(panels[i], data[i], mView.curWeek()); + } + } + + /** + * 切换周次 + * @param week + * @param isCurWeek 是否强制设置为当前周 + */ + @Override + public void changeWeek(int week, boolean isCurWeek) { + for (int i = 0; i < panels.length; i++) { + addToLayout(panels[i], data[i], week); + } + if (isCurWeek){ + mView.curWeek(week); + }else{ + mView.onWeekChangedListener().onWeekChanged(week); + } + } + + protected float getPerWidth(){ + float perWidth = 0; + if(mView.isShowWeekends()){ + perWidth=(ScreenUtils.getWidthInPx(context) -mView.monthWidth())/7; + }else{ + perWidth=(ScreenUtils.getWidthInPx(context) -mView.monthWidth())/5; + } + return perWidth; + } + /** + * 更新日期栏 + */ + public void updateDateView() { + dateLayout.removeAllViews(); + + float perWidth=getPerWidth(); + + int height = context.getResources().getDimensionPixelSize(R.dimen.headHeight); +// //日期栏 + ISchedule.OnDateBuildListener listener = mView.onDateBuildListener(); + listener.onInit(dateLayout, mView.dateAlpha()); + View[] views = mView.onDateBuildListener().getDateViews(inflater, mView.monthWidth(),perWidth, height); + for (View v : views) { + if (v != null) { + dateLayout.addView(v); + } + } + mView.onDateBuildListener().onUpdateDate(mView.curWeek(), mView.curWeek()); + mView.onDateBuildListener().onHighLight(); + } + + /** + * 侧边栏更新 + */ + @Override + public void updateSlideView() { + + newSlideView(weekPanel); + } + + /** + * 设置周末的可见性 + */ + public void setWeekendsVisiable(boolean isShow) { + if(isShow){ + if(panels!=null&&panels.length>6){ + panels[5].setVisibility(View.VISIBLE); + panels[6].setVisibility(View.VISIBLE); + } + }else{ + if(panels!=null&&panels.length>6){ + panels[5].setVisibility(View.GONE); + panels[6].setVisibility(View.GONE); + } + } + } +} diff --git a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/operater/package-info.java b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/operater/package-info.java new file mode 100644 index 0000000..c7efb3e --- /dev/null +++ b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/operater/package-info.java @@ -0,0 +1,4 @@ +/** + * 该包存放与ScheduleOperater有关的类 + */ +package com.zhuangfei.timetable.operater; \ No newline at end of file diff --git a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/view/WeekView.java b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/view/WeekView.java index fbdedac..308fdf8 100644 --- a/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/view/WeekView.java +++ b/AndroidTimetableView/TimetableView/src/com/zhuangfei/timetable/view/WeekView.java @@ -25,7 +25,6 @@ /** * 周次选择栏自定义View. * 每一项均为PerWeekView - * 懒加载机制:在使用时再绘制 */ public class WeekView extends LinearLayout implements WeekViewEnable{ diff --git a/AndroidTimetableView/app/release/app-release.apk b/AndroidTimetableView/app/release/app-release.apk new file mode 100644 index 0000000..1980f13 Binary files /dev/null and b/AndroidTimetableView/app/release/app-release.apk differ diff --git a/AndroidTimetableView/app/release/output.json b/AndroidTimetableView/app/release/output.json new file mode 100644 index 0000000..5897f44 --- /dev/null +++ b/AndroidTimetableView/app/release/output.json @@ -0,0 +1 @@ +[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1},"path":"app-release.apk","properties":{"packageId":"com.zhuangfei.android_timetableview","split":"","minSdkVersion":"15"}}] \ No newline at end of file diff --git a/AndroidTimetableView/app/src/main/AndroidManifest.xml b/AndroidTimetableView/app/src/main/AndroidManifest.xml index 8edcab4..7e0408a 100644 --- a/AndroidTimetableView/app/src/main/AndroidManifest.xml +++ b/AndroidTimetableView/app/src/main/AndroidManifest.xml @@ -34,7 +34,8 @@ - + + \ No newline at end of file diff --git a/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/MainActivity.java b/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/MainActivity.java index a13dd3d..a166c69 100644 --- a/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/MainActivity.java +++ b/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/MainActivity.java @@ -10,6 +10,7 @@ import com.zhuangfei.android_timetableview.views.BaseFuncActivity; import com.zhuangfei.android_timetableview.views.ColorPoolActivity; import com.zhuangfei.android_timetableview.views.DateActivity; +import com.zhuangfei.android_timetableview.views.DateDelayActivity; import com.zhuangfei.android_timetableview.views.ElasticActivity; import com.zhuangfei.android_timetableview.views.ExtrasActivity; import com.zhuangfei.android_timetableview.views.FlaglayoutActivity; @@ -37,6 +38,7 @@ private void initView() { Button button8=findViewById(R.id.id_btn8); Button button9=findViewById(R.id.id_btn9); Button button10=findViewById(R.id.id_btn10); + Button button11=findViewById(R.id.id_btn11); button1.setOnClickListener(this); button2.setOnClickListener(this); @@ -48,6 +50,7 @@ private void initView() { button8.setOnClickListener(this); button9.setOnClickListener(this); button10.setOnClickListener(this); + button11.setOnClickListener(this); } public void toTarget(Class cla){ @@ -88,6 +91,9 @@ public void onClick(View view) { case R.id.id_btn10: toTarget(FlaglayoutActivity.class); break; + case R.id.id_btn11: + toTarget(DateDelayActivity.class); + break; } } diff --git a/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/adapter/OnDateDelayAdapter.java b/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/adapter/OnDateDelayAdapter.java new file mode 100644 index 0000000..2bf59c8 --- /dev/null +++ b/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/adapter/OnDateDelayAdapter.java @@ -0,0 +1,128 @@ +package com.zhuangfei.android_timetableview.adapter; + +import android.text.TextUtils; +import android.widget.LinearLayout; +import com.zhuangfei.timetable.listener.OnDateBuildAapter; +import com.zhuangfei.timetable.model.ScheduleSupport; + +import java.text.SimpleDateFormat; +import java.util.List; + +/** + * 自定义日期栏 + * Created by Liu ZhuangFei on 2018/8/24. + */ +public class OnDateDelayAdapter extends OnDateBuildAapter { + + /** + * 阈值,即超过这个时间戳后开始更新日期 + * 否则将一直显示initDates中的日期 + */ + protected long startTime; + protected String startTimeStr; + + protected SimpleDateFormat sdf; + + /** + * 日期集合,8个元素,当前时间小于等于阈值时使用 + */ + List initDates=null; + + public OnDateDelayAdapter(){ + sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm"); + } + + /** + * 设置日期集合 + * @param dates 元素个数必须大于等于8,第一个为月份数值,第2-8为周一至周日的日期数值(不带中文) + */ + public void setDateList(List dates){ + if(dates.size()>=8){ + this.initDates=dates; + } + } + + public void setStartTime(long startTime) { + this.startTime = startTime; + this.startTimeStr=sdf.format(startTime); + } + + @Override + public void onInit(LinearLayout layout, float alpha) { + super.onInit(layout, alpha); + + //增加的 + long curTime=System.currentTimeMillis(); + if(curTime<=startTime){ + weekDates=initDates; + } + } + + @Override + public void onUpdateDate(int curWeek,int targetWeek) { + if (textViews == null || textViews.length < 8) return; + + if(whenBeginSchool()<=0){ + weekDates = ScheduleSupport.getDateStringFromWeek(curWeek,targetWeek); + } + + int month = Integer.parseInt(weekDates.get(0)); + textViews[0].setText(month + "\n月"); + for (int i = 1; i < 8; i++) { + if(textViews[i]!=null){ + textViews[i].setText(weekDates.get(i) + "日"); + } + } + } + + //这段代码可以禁止在开学前自动更新日期栏上的星期高亮 + //它会使用开学那天的星期作为高亮 + //你可以根据自己的需求使用 +// @Override +// public void onHighLight() { +// if(whenBeginSchool()<=0){ +// super.onHighLight(); +// return; +// } +// +// initDateBackground(); +// //获取周几,1->7 +// Calendar calendar = Calendar.getInstance(); +// calendar.setTime(new Date(startTime)); +// //一周第一天是否为星期天 +// boolean isFirstSunday = (calendar.getFirstDayOfWeek() == Calendar.SUNDAY); +// int weekDay = calendar.get(Calendar.DAY_OF_WEEK); +// //若一周第一天为星期天,则-1 +// if (isFirstSunday) { +// weekDay = weekDay - 1; +// if (weekDay == 0) { +// weekDay = 7; +// } +// } +// activeDateBackground(weekDay); +// } +// +// private void activeDateBackground(int weekDay) { +// layouts[weekDay].setBackgroundColor( +// ColorUtils.alphaColor(Color.parseColor("#BFF6F4"), alpha)); +// } + + /** + * 计算距离开学的天数 + * + * @return 返回值2种类型,-1:没有开学时间,无法计算;0:已经开学;>0:天数 + */ + public long whenBeginSchool(){ + if(!TextUtils.isEmpty(startTimeStr)){ + int calWeek= ScheduleSupport.timeTransfrom(startTimeStr); + if(calWeek>0){//开学 + return 0; + }else { + long seconds=(startTime-System.currentTimeMillis())/1000; + long day = seconds / (24 * 3600); + return day; + } + } + return -1; + } +} diff --git a/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/model/SubjectRepertory.java b/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/model/SubjectRepertory.java index 48630af..4013d02 100644 --- a/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/model/SubjectRepertory.java +++ b/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/model/SubjectRepertory.java @@ -22,6 +22,14 @@ public static List loadDefaultSubjects(){ return parse(json); } + public static List loadDefaultSubjects2() { + //json转义 + String json = "[[\"2017-2018学年秋\", \"\", \"\", \"计算机组成原理\", \"\", \"\", \"\", \"\", \"刘静\", \"\", \"\", \"1,2,3,4,5\", 1, 1, 4, \"\", \"计算机综合楼106\", \"\"]," + + "[\"2017-2018学年秋\", \"\", \"\", \"高等数学\", \"\", \"\", \"\", \"\", \"壮飞\", \"\", \"\", \"1,2,3,7,8\", 1, 2, 2, \"\", \"计算机综合楼106\", \"\"]," + + "[\"2017-2018学年秋\", \"\", \"\", \"算法分析与设计\", \"\", \"\", \"\", \"\", \"王静\", \"\", \"\", \"1,3,5,9,10\", 1, 5, 2, \"\", \"计算机综合楼205\", \"\"]]"; + return parse(json); + } + /** * 对json字符串进行解析 * @param parseString diff --git a/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/BaseFuncActivity.java b/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/BaseFuncActivity.java index 25d17ed..f0cc333 100644 --- a/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/BaseFuncActivity.java +++ b/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/BaseFuncActivity.java @@ -20,7 +20,9 @@ import com.zhuangfei.timetable.listener.ISchedule; import com.zhuangfei.timetable.listener.IWeekView; import com.zhuangfei.timetable.listener.OnSlideBuildAdapter; +import com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter; import com.zhuangfei.timetable.model.Schedule; +import com.zhuangfei.timetable.model.ScheduleSupport; import com.zhuangfei.timetable.view.WeekView; import java.util.List; @@ -66,7 +68,8 @@ public void onClick(View view) { } }); - mySubjects = SubjectRepertory.loadDefaultSubjects(); + mySubjects = SubjectRepertory.loadDefaultSubjects2(); + mySubjects.addAll(SubjectRepertory.loadDefaultSubjects()); titleTextView = findViewById(R.id.id_title); layout = findViewById(R.id.id_layout); layout.setOnClickListener(this); @@ -107,10 +110,11 @@ public void onWeekLeftClicked() { .curWeek(1) .curTerm("大三下学期") .maxSlideItem(10) + .monthWidthDp(30) //透明度 //日期栏0.1f、侧边栏0.1f,周次选择栏0.6f //透明度范围为0->1,0为全透明,1为不透明 - .alpha(0.3f, 0.1f, 0.6f) +// .alpha(0.1f, 0.1f, 0.6f) .callback(new ISchedule.OnItemClickListener() { @Override public void onItemClick(View v, List scheduleList) { @@ -243,6 +247,18 @@ public boolean onMenuItemClick(MenuItem item) { case R.id.top12: hideWeekView(); break; + case R.id.top13: + setMonthWidth(); + break; + case R.id.top16: + resetMonthWidth(); + break; + case R.id.top14: + hideWeekends(); + break; + case R.id.top15: + showWeekends(); + break; default: break; } @@ -371,4 +387,32 @@ protected void showWeekView() { protected void hideWeekView() { mWeekView.isShow(false); } + + /** + * 设置月份宽度 + */ + private void setMonthWidth() { + mTimetableView.monthWidthDp(50).updateView(); + } + + /** + * 设置月份宽度,默认40dp + */ + private void resetMonthWidth() { + mTimetableView.monthWidthDp(40).updateView(); + } + + /** + * 隐藏周末 + */ + private void hideWeekends() { + mTimetableView.isShowWeekends(false).updateView(); + } + + /** + * 显示周末 + */ + private void showWeekends() { + mTimetableView.isShowWeekends(true).updateView(); + } } diff --git a/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/DateDelayActivity.java b/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/DateDelayActivity.java new file mode 100644 index 0000000..0466a90 --- /dev/null +++ b/AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/DateDelayActivity.java @@ -0,0 +1,118 @@ +package com.zhuangfei.android_timetableview.views; + +import android.content.DialogInterface; +import android.support.v7.app.AlertDialog; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.View; +import android.widget.TextView; +import android.widget.Toast; + +import com.zhuangfei.android_timetableview.R; +import com.zhuangfei.android_timetableview.adapter.OnDateDelayAdapter; +import com.zhuangfei.android_timetableview.model.MySubject; +import com.zhuangfei.android_timetableview.model.SubjectRepertory; +import com.zhuangfei.timetable.TimetableView; +import com.zhuangfei.timetable.listener.ISchedule; +import com.zhuangfei.timetable.listener.IWeekView; +import com.zhuangfei.timetable.listener.OnDateBuildAapter; +import com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter; +import com.zhuangfei.timetable.model.Schedule; +import com.zhuangfei.timetable.model.ScheduleSupport; +import com.zhuangfei.timetable.view.WeekView; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Date; +import java.util.List; + +/** + * 日期延迟案例: + * 需求:设定一个开学时间,在开学时间到来之前,一直显示开学时的第一周的日期 + */ +public class DateDelayActivity extends AppCompatActivity { + + //控件 + TimetableView mTimetableView; + + TextView titleTextView; + List mySubjects; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_date_delay); + mySubjects = SubjectRepertory.loadDefaultSubjects(); + titleTextView = findViewById(R.id.id_title); + initTimetableView(); + } + + @Override + protected void onStart() { + super.onStart(); + + //用于更正日期的显示 + int cur=mTimetableView.curWeek(); + mTimetableView.onDateBuildListener().onUpdateDate(cur,cur); + + //更新文本 + OnDateDelayAdapter adapter= (OnDateDelayAdapter) mTimetableView.onDateBuildListener(); + long when=adapter.whenBeginSchool(); + if(when>0){ + titleTextView.setText("距离开学还有"+when+"天"); + } + } + + /** + * 初始化课程控件 + */ + private void initTimetableView() { + mTimetableView = findViewById(R.id.id_timetableView); + + mTimetableView.source(mySubjects) + .curWeek(1) + .curTerm("大三下学期") + .maxSlideItem(10) + .callback(new ISchedule.OnWeekChangedListener() { + @Override + public void onWeekChanged(int curWeek) { + OnDateDelayAdapter adapter= (OnDateDelayAdapter) mTimetableView.onDateBuildListener(); + long when=adapter.whenBeginSchool(); + if(when>0){ + titleTextView.setText("距离开学还有"+when+"天"); + }else{ + titleTextView.setText("第" + curWeek + "周"); + } + } + }) + .callback(getDateDelayAdapter()) + .showView(); + } + + /** + * 配置OnDateDelayAdapter + */ + public OnDateDelayAdapter getDateDelayAdapter(){ + OnDateDelayAdapter onDateDelayAdapter=new OnDateDelayAdapter(); + + //计算开学时间戳 + SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm"); + long startTime=0; + try { + startTime=sdf.parse("2018-09-03 00:00").getTime(); + } catch (ParseException e) { + e.printStackTrace(); + } + + //计算开学时的一周日期,我这里模拟一下 + List dateList= Arrays.asList("9","03","04","05","06","07","08","09"); + + //设置 + onDateDelayAdapter.setStartTime(startTime); + onDateDelayAdapter.setDateList(dateList); + return onDateDelayAdapter; + } +} diff --git a/AndroidTimetableView/app/src/main/res/layout/activity_base_func.xml b/AndroidTimetableView/app/src/main/res/layout/activity_base_func.xml index 81cbefe..01bbdde 100644 --- a/AndroidTimetableView/app/src/main/res/layout/activity_base_func.xml +++ b/AndroidTimetableView/app/src/main/res/layout/activity_base_func.xml @@ -17,7 +17,7 @@ android:id="@+id/id_timetableView" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@drawable/bg3"> + android:background="@color/app_white"> diff --git a/AndroidTimetableView/app/src/main/res/layout/activity_date_delay.xml b/AndroidTimetableView/app/src/main/res/layout/activity_date_delay.xml new file mode 100644 index 0000000..7431f82 --- /dev/null +++ b/AndroidTimetableView/app/src/main/res/layout/activity_date_delay.xml @@ -0,0 +1,18 @@ + + + + + + + + + \ No newline at end of file diff --git a/AndroidTimetableView/app/src/main/res/layout/activity_main.xml b/AndroidTimetableView/app/src/main/res/layout/activity_main.xml index 04a4cc2..4069693 100644 --- a/AndroidTimetableView/app/src/main/res/layout/activity_main.xml +++ b/AndroidTimetableView/app/src/main/res/layout/activity_main.xml @@ -65,5 +65,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:text="旗标布局(空白格子点击)" /> + diff --git a/AndroidTimetableView/app/src/main/res/menu/popmenu_base_func.xml b/AndroidTimetableView/app/src/main/res/menu/popmenu_base_func.xml index 4f0084f..81fd43f 100644 --- a/AndroidTimetableView/app/src/main/res/menu/popmenu_base_func.xml +++ b/AndroidTimetableView/app/src/main/res/menu/popmenu_base_func.xml @@ -1,6 +1,15 @@ - + + + + + + + + + + + +所有类 + + + + + +所有类 + + +AbsOperater +ColorUtils +ISchedule +ISchedule.OnDateBuildListener +ISchedule.OnFlaglayoutClickListener +ISchedule.OnItemBuildListener +ISchedule.OnItemClickListener +ISchedule.OnItemLongClickListener +ISchedule.OnScrollViewBuildListener +ISchedule.OnSlideBuildListener +ISchedule.OnSpaceItemClickListener +ISchedule.OnWeekChangedListener +IWeekView +IWeekView.OnWeekItemClickedListener +IWeekView.OnWeekLeftClickedListener +OnDateBuildAapter +OnFlaglayoutClickAdapter +OnItemBuildAdapter +OnItemClickAdapter +OnItemLongClickAdapter +OnScrollViewBuildAdapter +OnSlideBuildAdapter +OnSpaceItemClickAdapter +OnWeekChangedAdapter +OnWeekItemClickedAdapter +OnWeekLeftClickedAdapter +PerWeekView +Schedule +ScheduleColorPool +ScheduleEnable +ScheduleSupport +ScreenUtils +SimpleOperater +TimetableView +WeekView +WeekViewEnable + + + + 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 @@ + + + + + + +所有类 + + + + + +所有类 + + +AbsOperater +ColorUtils +ISchedule +ISchedule.OnDateBuildListener +ISchedule.OnFlaglayoutClickListener +ISchedule.OnItemBuildListener +ISchedule.OnItemClickListener +ISchedule.OnItemLongClickListener +ISchedule.OnScrollViewBuildListener +ISchedule.OnSlideBuildListener +ISchedule.OnSpaceItemClickListener +ISchedule.OnWeekChangedListener +IWeekView +IWeekView.OnWeekItemClickedListener +IWeekView.OnWeekLeftClickedListener +OnDateBuildAapter +OnFlaglayoutClickAdapter +OnItemBuildAdapter +OnItemClickAdapter +OnItemLongClickAdapter +OnScrollViewBuildAdapter +OnSlideBuildAdapter +OnSpaceItemClickAdapter +OnWeekChangedAdapter +OnWeekItemClickedAdapter +OnWeekLeftClickedAdapter +PerWeekView +Schedule +ScheduleColorPool +ScheduleEnable +ScheduleSupport +ScreenUtils +SimpleOperater +TimetableView +WeekView +WeekViewEnable + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable +类 TimetableView + + + +java.lang.Object + + +android.view.View + + +android.view.ViewGroup + + +android.widget.LinearLayout + + +com.zhuangfei.timetable.TimetableView + + + + + + + + + + + + + +所有已实现的接口: +android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.view.ViewManager, android.view.ViewParent + + + +public class TimetableView +extends android.widget.LinearLayout +课程表控件,该类主要负责属性的设置,业务逻辑由SimpleOperater处理 + 虽然这个类代码很多,但是都是属性设置,除了属性设置的方法: + showView() + changeWeek(int, boolean) + changeWeekOnly(int) + changeWeekForce(int) + updateView() + updateSlideView() + updateDateView() + updateView() + + 文档参考 https://github.com/zfman/TimetableView/wiki/%E6%9C%80%E6%96%B0%E6%96%87%E6%A1%A3 + +另请参阅: +AbsOperater, +SimpleOperater + + + + + + + + + + + + +嵌套类概要 + + + + +从类继承的嵌套类/接口 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) +初始化 + + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +TimetableView +alpha(float allAlpha) +将三个透明度统一设置 + + + +TimetableView +alpha(float dateAlpha, + float slideAlpha, + float itemAlpha) +透明度设置 + + + +TimetableView +callback(ISchedule.OnDateBuildListener onDateBuildListener) +设置日期栏构建监听器 + + + +TimetableView +callback(ISchedule.OnFlaglayoutClickListener onFlaglayoutClickListener) +设置旗标布局点击监听器 + + + +TimetableView +callback(ISchedule.OnItemBuildListener onItemBuildListener) +设置课程项构建监听器 + + + +TimetableView +callback(ISchedule.OnItemClickListener onItemClickListener) +设置Item点击监听器 + + + +TimetableView +callback(ISchedule.OnItemLongClickListener onItemLongClickListener) +设置课程项长按监听器 + + + +TimetableView +callback(ISchedule.OnScrollViewBuildListener onScrollViewBuildListener) +设置滚动布局构建监听器 + + + +TimetableView +callback(ISchedule.OnSlideBuildListener onSlideBuildListener) +设置侧边栏构建监听器 + + + +TimetableView +callback(ISchedule.OnSpaceItemClickListener onSpaceItemClickListener) +设置空白格子点击监听器,点击之后会出现一个旗标布局 + + + +TimetableView +callback(ISchedule.OnWeekChangedListener onWeekChangedListener) +设置周次改变监听器 + + + +void +changeWeek(int week, + boolean isCurWeek) +周次切换 + + + +void +changeWeekForce(int week) +切换周次且修改为当前周 + + + +void +changeWeekOnly(int week) +仅仅切换周次,不修改当前周 + + + +ScheduleColorPool +colorPool() +获取颜色池 + + + +int +corner(boolean isThisWeek) +获取课程角度 + + + +TimetableView +corner(int corner, + boolean isThisWeek) +课程角度设置 + + + +TimetableView +cornerAll(int cornerValue) +设置本周、非本周相同的弧度 + + + +java.lang.String +curTerm() +获取当前学期 + + + +TimetableView +curTerm(java.lang.String curTerm) +设置当前学期 + + + +int +curWeek() +获取当前周 + + + +TimetableView +curWeek(int curWeek) +设置当前周 + + + +TimetableView +curWeek(java.lang.String startTime) +设置开学时间来计算当前周 + + + +TimetableView +data(java.util.List<Schedule> dataSource) +设置数据源 + + + +java.util.List<Schedule> +dataSource() +获取数据源 + + + +float +dateAlpha() +获取日期栏透明度 + + + +int +dp2px(int dp) +dp->px + + + +int +flagBgcolor() +获取旗标布局背景颜色 + + + +TimetableView +flagBgcolor(int color) +设置旗标布局背景颜色 + + + +android.widget.LinearLayout +flagLayout() +获取旗标布局 + + + +void +hideDateView() +将日期栏设为隐藏状态 + + + +TimetableView +hideFlaglayout() +隐藏旗标布局,立即生效 + + + +boolean +isShowFlaglayout() +获取是否显示旗标布局 + + + +TimetableView +isShowFlaglayout(boolean isShowFlaglayout) +设置是否显示旗标布局 + + + +boolean +isShowNotCurWeek() +判断是否显示非本周课程 + + + +TimetableView +isShowNotCurWeek(boolean showNotCurWeek) +设置是否显示非本周课程 + + + +boolean +isShowWeekends() + + +TimetableView +isShowWeekends(boolean isShowWeekends) +是否显示周末 + + + +float +itemAlpha() +获取课程项透明度 + + + +int +itemHeight() +获取课程项的高度 + + + +TimetableView +itemHeight(int itemHeightPx) +设置课程项的高度 + + + +TimetableView +itemTextColor(int color, + boolean isThisWeek) +课程项文本颜色 + + + +int +itemTextColorWithNotThis() +获取非本周课程项文本颜色 + + + +int +itemTextColorWithThisWeek() +获取本周课程项文本颜色 + + + +int +marLeft() +获取左边距 + + + +TimetableView +marLeft(int marLeftPx) +设置左边距值 + + + +int +marTop() +获取上边距 + + + +TimetableView +marTop(int marTopPx) +设置上边距值 + + + +int +maxSlideItem() +获取最大节次 + + + +TimetableView +maxSlideItem(int maxSlideItem) +设置最大节次 + + + +int +monthWidth() +获取侧边栏宽度px + + + +TimetableView +monthWidthDp(int monthWidthDp) +设置侧边栏宽度dp + + + +TimetableView +monthWidthPx(int monthWidthPx) +设置侧边栏宽度px + + + +ISchedule.OnDateBuildListener +onDateBuildListener() +获取日期栏构建监听器 + + + +ISchedule.OnFlaglayoutClickListener +onFlaglayoutClickListener() +获取旗标布局点击监听器 + + + +ISchedule.OnItemBuildListener +onItemBuildListener() +获取Item构建监听器 + + + +ISchedule.OnItemClickListener +onItemClickListener() +获取Item点击监听 + + + +ISchedule.OnItemLongClickListener +onItemLongClickListener() +获取课程项长按监听器 + + + +ISchedule.OnScrollViewBuildListener +onScrollViewBuildListener() +获取滚动布局构建监听器 + + + +ISchedule.OnSlideBuildListener +onSlideBuildListener() +获取侧边栏构建监听 + + + +ISchedule.OnSpaceItemClickListener +onSpaceItemClickListener() +获取空白格子点击监听器 + + + +ISchedule.OnWeekChangedListener +onWeekChangedListener() +获取周次改变监听器 + + + +AbsOperater +operater() + + +TimetableView +operater(AbsOperater operater) + + +TimetableView +resetFlagBgcolor() +重置旗标布局背景色 + + + +void +showDateView() +将日期栏设为可见状态 + + + +TimetableView +showFlaglayout() +显示旗标布局,立即生效 + + + +void +showView() + + +float +slideAlpha() +获取侧边栏透明度 + + + +TimetableView +source(java.util.List<? extends ScheduleEnable> dataSource) +设置数据源 + + + +TimetableView +thisWeekCorner(int thisWeekCorner) +设置本周课程的弧度 + + + +void +updateDateView() +更新日期栏 + + + +void +updateFlaglayout() +更新旗标布局的背景色 + + + +void +updateSlideView() +侧边栏更新 + + + +void +updateView() +等同于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() + + + + + + + +operater +public AbsOperater operater() + + + + + + + +operater +public TimetableView operater(AbsOperater operater) + + + + + + + +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() +获取旗标布局 + +返回: + + + + + + + + +callback +public TimetableView callback(ISchedule.OnItemLongClickListener onItemLongClickListener) +设置课程项长按监听器 + +参数: +onItemLongClickListener - +返回: + + + + + + + + +onItemLongClickListener +public ISchedule.OnItemLongClickListener onItemLongClickListener() +获取课程项长按监听器 + +返回: + + + + + + + + +callback +public TimetableView callback(ISchedule.OnDateBuildListener onDateBuildListener) +设置日期栏构建监听器 + +参数: +onDateBuildListener - +返回: + + + + + + + + +onDateBuildListener +public ISchedule.OnDateBuildListener onDateBuildListener() +获取日期栏构建监听器 + +返回: + + + + + + + + +onWeekChangedListener +public ISchedule.OnWeekChangedListener onWeekChangedListener() +获取周次改变监听器 + +返回: + + + + + + + + +callback +public TimetableView callback(ISchedule.OnWeekChangedListener onWeekChangedListener) +设置周次改变监听器 + +参数: +onWeekChangedListener - +返回: + + + + + + + + +callback +public TimetableView callback(ISchedule.OnScrollViewBuildListener onScrollViewBuildListener) +设置滚动布局构建监听器 + +参数: +onScrollViewBuildListener - +返回: + + + + + + + + +onScrollViewBuildListener +public ISchedule.OnScrollViewBuildListener onScrollViewBuildListener() +获取滚动布局构建监听器 + +返回: + + + + + + + + +callback +public TimetableView callback(ISchedule.OnItemBuildListener onItemBuildListener) +设置课程项构建监听器 + +参数: +onItemBuildListener - +返回: + + + + + + + + +callback +public TimetableView callback(ISchedule.OnItemClickListener onItemClickListener) +设置Item点击监听器 + +参数: +onItemClickListener - +返回: + + + + + + + + +onSlideBuildListener +public ISchedule.OnSlideBuildListener onSlideBuildListener() +获取侧边栏构建监听 + +返回: + + + + + + + + +callback +public TimetableView callback(ISchedule.OnSlideBuildListener onSlideBuildListener) +设置侧边栏构建监听器 + +参数: +onSlideBuildListener - +返回: + + + + + + + + +callback +public TimetableView callback(ISchedule.OnSpaceItemClickListener onSpaceItemClickListener) +设置空白格子点击监听器,点击之后会出现一个旗标布局 + +参数: + - +返回: + + + + + + + + +onSpaceItemClickListener +public ISchedule.OnSpaceItemClickListener onSpaceItemClickListener() +获取空白格子点击监听器 + +返回: + + + + + + + + +callback +public TimetableView callback(ISchedule.OnFlaglayoutClickListener onFlaglayoutClickListener) +设置旗标布局点击监听器 + +参数: +onFlaglayoutClickListener - +返回: + + + + + + + + +onFlaglayoutClickListener +public ISchedule.OnFlaglayoutClickListener onFlaglayoutClickListener() +获取旗标布局点击监听器 + +返回: + + + + + + + + +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() +获取最大节次 + +返回: +最大节次 + + + + + + + + +onItemBuildListener +public ISchedule.OnItemBuildListener onItemBuildListener() +获取Item构建监听器 + +返回: + + + + + + + + +onItemClickListener +public ISchedule.OnItemClickListener onItemClickListener() +获取Item点击监听 + +返回: + + + + + + + + +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:不显示 + + + + + + + + +colorPool +public ScheduleColorPool colorPool() +获取颜色池 + +返回: +ScheduleColorPool +另请参阅: +ScheduleColorPool + + + + + + + + +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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +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起该方法无效 + + + +void +onHighLight() +为日期栏设置高亮时回调 + + + +void +onInit(android.widget.LinearLayout layout, + float alpha) +初始化方法 + + + +void +onUpdateDate(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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +接口 ISchedule.OnFlaglayoutClickListener + + + + + + +所有已知实现类: +OnFlaglayoutClickAdapter + + +封闭接口: +ISchedule + + + +public static interface ISchedule.OnFlaglayoutClickListener +旗标布局点击监听器 + + + + + + + + + + + +方法概要 + +所有方法 实例方法 抽象方法 + +限定符和类型 +方法和说明 + + +void +onFlaglayoutClick(int day, + int start) +当旗标布局被点击时回调 + + + + + + + + + + + + + + + + +方法详细资料 + + + + + +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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +接口 ISchedule.OnItemBuildListener + + + + + + +所有已知实现类: +OnItemBuildAdapter + + +封闭接口: +ISchedule + + + +public static interface ISchedule.OnItemBuildListener +课程项构建时回调 + + + + + + + + + + + +方法概要 + +所有方法 实例方法 抽象方法 + +限定符和类型 +方法和说明 + + +java.lang.String +getItemText(Schedule schedule, + boolean isThisWeek) +构建课程项的文本时回调. + + + +void +onItemUpdate(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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +接口 ISchedule.OnItemClickListener + + + + + + +所有已知实现类: +OnItemClickAdapter + + +封闭接口: +ISchedule + + + +public static interface ISchedule.OnItemClickListener +课程项点击监听器 + + + + + + + + + + + +方法概要 + +所有方法 实例方法 抽象方法 + +限定符和类型 +方法和说明 + + +void +onItemClick(android.view.View v, + java.util.List<Schedule> scheduleList) +当课程项被点击时回调 + + + + + + + + + + + + + + + + +方法详细资料 + + + + + +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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +接口 ISchedule.OnItemLongClickListener + + + + + + +所有已知实现类: +OnItemLongClickAdapter + + +封闭接口: +ISchedule + + + +public static interface ISchedule.OnItemLongClickListener +课程项长按事件监听器 + + + + + + + + + + + +方法概要 + +所有方法 实例方法 抽象方法 + +限定符和类型 +方法和说明 + + +void +onLongClick(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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +接口 ISchedule.OnScrollViewBuildListener + + + + + + +所有已知实现类: +OnScrollViewBuildAdapter + + +封闭接口: +ISchedule + + + +public static interface ISchedule.OnScrollViewBuildListener +滚动布局构建监听器 + + + + + + + + + + + +方法概要 + +所有方法 实例方法 抽象方法 + +限定符和类型 +方法和说明 + + +android.view.View +getScrollView(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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +接口 ISchedule.OnSlideBuildListener + + + + + + +所有已知实现类: +OnSlideBuildAdapter + + +封闭接口: +ISchedule + + + +public static interface ISchedule.OnSlideBuildListener +侧边栏构建监听器 + + + + + + + + + + + +方法概要 + +所有方法 实例方法 抽象方法 + +限定符和类型 +方法和说明 + + +android.view.View +getView(int pos, + android.view.LayoutInflater inflater, + int itemHeight, + int marTop) +构建每项 + + + +void +onInit(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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +接口 ISchedule.OnSpaceItemClickListener + + + + + + +所有已知实现类: +OnSpaceItemClickAdapter + + +封闭接口: +ISchedule + + + +public static interface ISchedule.OnSpaceItemClickListener +空白格子点击监听器 + + + + + + + + + + + +方法概要 + +所有方法 实例方法 抽象方法 + +限定符和类型 +方法和说明 + + +void +onInit(android.widget.LinearLayout flagLayout, + int monthWidth, + int itemWidth, + int itemHeight, + int marTop, + int marLeft) +初始化方法 + + + +void +onSpaceItemClick(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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +接口 ISchedule.OnWeekChangedListener + + + + + + +所有已知实现类: +OnWeekChangedAdapter + + +封闭接口: +ISchedule + + + +public static interface ISchedule.OnWeekChangedListener +周次改变监听器 + + + + + + + + + + + +方法概要 + +所有方法 实例方法 抽象方法 + +限定符和类型 +方法和说明 + + +void +onWeekChanged(int curWeek) +当周次被改变时回调 + + + + + + + + + + + + + + + + +方法详细资料 + + + + + +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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +接口 ISchedule + + + + + + + +public interface ISchedule +与Schedule有关的接口. + + + + + + + + + + + +嵌套类概要 + +嵌套类 + +限定符和类型 +接口和说明 + + +static interface +ISchedule.OnDateBuildListener +日期构造监听器 + + + +static interface +ISchedule.OnFlaglayoutClickListener +旗标布局点击监听器 + + + +static interface +ISchedule.OnItemBuildListener +课程项构建时回调 + + + +static interface +ISchedule.OnItemClickListener +课程项点击监听器 + + + +static interface +ISchedule.OnItemLongClickListener +课程项长按事件监听器 + + + +static interface +ISchedule.OnScrollViewBuildListener +滚动布局构建监听器 + + + +static interface +ISchedule.OnSlideBuildListener +侧边栏构建监听器 + + + +static interface +ISchedule.OnSpaceItemClickListener +空白格子点击监听器 + + + +static interface +ISchedule.OnWeekChangedListener +周次改变监听器 + + + + + + + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +接口 IWeekView.OnWeekItemClickedListener + + + + + + +所有已知实现类: +OnWeekItemClickedAdapter + + +封闭接口: +IWeekView + + + +public static interface IWeekView.OnWeekItemClickedListener +WeekView的Item点击监听器 + + + + + + + + + + + +方法概要 + +所有方法 实例方法 抽象方法 + +限定符和类型 +方法和说明 + + +void +onWeekClicked(int week) +当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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +接口 IWeekView.OnWeekLeftClickedListener + + + + + + +所有已知实现类: +OnWeekLeftClickedAdapter + + +封闭接口: +IWeekView + + + +public static interface IWeekView.OnWeekLeftClickedListener +WeekView的左侧(设置当前周)的点击监听器 + + + + + + + + + + + +方法概要 + +所有方法 实例方法 抽象方法 + +限定符和类型 +方法和说明 + + +void +onWeekLeftClicked() +当"设置当前周"按钮被点击时回调 + + + + + + + + + + + + + + + + +方法详细资料 + + + + + +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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +接口 IWeekView + + + + + + + +public interface IWeekView +WeekView的相关接口. + + + + + + + + + + + +嵌套类概要 + +嵌套类 + +限定符和类型 +接口和说明 + + +static interface +IWeekView.OnWeekItemClickedListener +WeekView的Item点击监听器 + + + +static interface +IWeekView.OnWeekLeftClickedListener +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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +类 OnDateBuildAapter + + + +java.lang.Object + + +com.zhuangfei.timetable.listener.OnDateBuildAapter + + + + + + + +所有已实现的接口: +ISchedule.OnDateBuildListener + + + +public class OnDateBuildAapter +extends java.lang.Object +implements ISchedule.OnDateBuildListener +日期栏的构建过程. + + + + + + + + + + + +字段概要 + +字段 + +限定符和类型 +字段和说明 + + +protected float +alpha + + +protected int +background + + +protected java.lang.String[] +dateArray + + +protected android.widget.LinearLayout +layout + + +protected android.widget.LinearLayout[] +layouts + + +protected android.widget.TextView[] +textViews + + +protected java.util.List<java.lang.String> +weekDates + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +OnDateBuildAapter() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +protected void +activeDateBackground(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 void +initDateBackground() + + +protected android.view.View +onBuildDayLayout(android.view.LayoutInflater mInflate, + int pos, + int width, + int height) + + +protected android.view.View +onBuildMonthLayout(android.view.LayoutInflater mInflate, + int width, + int height) +构建月份,也就是日期栏的第一格. + + + +void +onHighLight() +为日期栏设置高亮时回调 + + + +void +onInit(android.widget.LinearLayout layout, + float alpha) +初始化方法 + + + +void +onUpdateDate(int curWeek, + int targetWeek) +更新日期时回调 + + + +OnDateBuildAapter +setBackground(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() + + + + + + + + + +方法详细资料 + + + + + +setBackground +public OnDateBuildAapter setBackground(int background) + + + + + + + +onInit +public void onInit(android.widget.LinearLayout layout, + float alpha) +从接口复制的说明: ISchedule.OnDateBuildListener +初始化方法 + +指定者: +onInit 在接口中 ISchedule.OnDateBuildListener +参数: +layout - 日期栏容器 +alpha - 透明度 + + + + + + + + +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 - 默认的日期栏高度 +返回: + + + + + + + + +onHighLight +public void onHighLight() +从接口复制的说明: ISchedule.OnDateBuildListener +为日期栏设置高亮时回调 + +指定者: +onHighLight 在接口中 ISchedule.OnDateBuildListener + + + + + + + + +onUpdateDate +public void onUpdateDate(int curWeek, + int targetWeek) +从接口复制的说明: ISchedule.OnDateBuildListener +更新日期时回调 + +指定者: +onUpdateDate 在接口中 ISchedule.OnDateBuildListener + + + + + + + + +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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +类 OnFlaglayoutClickAdapter + + + +java.lang.Object + + +com.zhuangfei.timetable.listener.OnFlaglayoutClickAdapter + + + + + + + +所有已实现的接口: +ISchedule.OnFlaglayoutClickListener + + + +public class OnFlaglayoutClickAdapter +extends java.lang.Object +implements ISchedule.OnFlaglayoutClickListener +Created by Liu ZhuangFei on 2018/8/3. + + + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +OnFlaglayoutClickAdapter() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +void +onFlaglayoutClick(int day, + int start) +当旗标布局被点击时回调 + + + + + + + +从类继承的方法 java.lang.Object +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait + + + + + + + + + + + + + + +构造器详细资料 + + + + + +OnFlaglayoutClickAdapter +public OnFlaglayoutClickAdapter() + + + + + + + + + +方法详细资料 + + + + + +onFlaglayoutClick +public void onFlaglayoutClick(int day, + int start) +从接口复制的说明: ISchedule.OnFlaglayoutClickListener +当旗标布局被点击时回调 + +指定者: +onFlaglayoutClick 在接口中 ISchedule.OnFlaglayoutClickListener +参数: +day - 表示周几,0:周一,6:周日 +start - 表示点击空白格子的节次,1:第一节 + + + + + + + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +类 OnItemBuildAdapter + + + +java.lang.Object + + +com.zhuangfei.timetable.listener.OnItemBuildAdapter + + + + + + + +所有已实现的接口: +ISchedule.OnItemBuildListener + + + +public class OnItemBuildAdapter +extends java.lang.Object +implements ISchedule.OnItemBuildListener +Item构建监听器的默认实现. + + + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +OnItemBuildAdapter() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +java.lang.String +getItemText(Schedule schedule, + boolean isThisWeek) +构建课程项的文本时回调. + + + +void +onItemUpdate(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() + + + + + + + + + +方法详细资料 + + + + + +getItemText +public java.lang.String getItemText(Schedule schedule, + boolean isThisWeek) +从接口复制的说明: ISchedule.OnItemBuildListener +构建课程项的文本时回调. + +指定者: +getItemText 在接口中 ISchedule.OnItemBuildListener +参数: +schedule - 该位置对应的课程实体 +isThisWeek - 该课程是否是本周上 +返回: + + + + + + + + +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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +类 OnItemClickAdapter + + + +java.lang.Object + + +com.zhuangfei.timetable.listener.OnItemClickAdapter + + + + + + + +所有已实现的接口: +ISchedule.OnItemClickListener + + + +public class OnItemClickAdapter +extends java.lang.Object +implements ISchedule.OnItemClickListener +Item点击的默认实现. + + + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +OnItemClickAdapter() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +void +onItemClick(android.view.View v, + java.util.List<Schedule> scheduleList) +当课程项被点击时回调 + + + + + + + +从类继承的方法 java.lang.Object +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait + + + + + + + + + + + + + + +构造器详细资料 + + + + + +OnItemClickAdapter +public OnItemClickAdapter() + + + + + + + + + +方法详细资料 + + + + + +onItemClick +public void onItemClick(android.view.View v, + java.util.List<Schedule> scheduleList) +从接口复制的说明: ISchedule.OnItemClickListener +当课程项被点击时回调 + +指定者: +onItemClick 在接口中 ISchedule.OnItemClickListener +scheduleList - 该位置的所有课程 + + + + + + + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +类 OnItemLongClickAdapter + + + +java.lang.Object + + +com.zhuangfei.timetable.listener.OnItemLongClickAdapter + + + + + + + +所有已实现的接口: +ISchedule.OnItemLongClickListener + + + +public class OnItemLongClickAdapter +extends java.lang.Object +implements ISchedule.OnItemLongClickListener +Created by Liu ZhuangFei on 2018/8/3. + + + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +OnItemLongClickAdapter() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +void +onLongClick(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() + + + + + + + + + +方法详细资料 + + + + + +onLongClick +public void onLongClick(android.view.View v, + int day, + int start) +从接口复制的说明: ISchedule.OnItemLongClickListener +当课程项被点击时回调 + +指定者: +onLongClick 在接口中 ISchedule.OnItemLongClickListener +day - 星期,1:周一,7:周日 +start - 节次,从1开始 + + + + + + + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +类 OnScrollViewBuildAdapter + + + +java.lang.Object + + +com.zhuangfei.timetable.listener.OnScrollViewBuildAdapter + + + + + + + +所有已实现的接口: +ISchedule.OnScrollViewBuildListener + + + +public class OnScrollViewBuildAdapter +extends java.lang.Object +implements ISchedule.OnScrollViewBuildListener +滚动布局构建监听的默认实现 + + + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +OnScrollViewBuildAdapter() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +android.view.View +getScrollView(android.view.LayoutInflater mInflate) +构建滚动布局时回调 + + + + + + + +从类继承的方法 java.lang.Object +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait + + + + + + + + + + + + + + +构造器详细资料 + + + + + +OnScrollViewBuildAdapter +public OnScrollViewBuildAdapter() + + + + + + + + + +方法详细资料 + + + + + +getScrollView +public android.view.View getScrollView(android.view.LayoutInflater mInflate) +从接口复制的说明: ISchedule.OnScrollViewBuildListener +构建滚动布局时回调 + +指定者: +getScrollView 在接口中 ISchedule.OnScrollViewBuildListener +返回: + + + + + + + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +类 OnSlideBuildAdapter + + + +java.lang.Object + + +com.zhuangfei.timetable.listener.OnSlideBuildAdapter + + + + + + + +所有已实现的接口: +ISchedule.OnSlideBuildListener + + + +public class OnSlideBuildAdapter +extends java.lang.Object +implements ISchedule.OnSlideBuildListener +控件实现的一个可以显示时间的侧边栏适配器 + Created by Liu ZhuangFei on 2018/6/18. + + + + + + + + + + + +字段概要 + +字段 + +限定符和类型 +字段和说明 + + +protected float +alpha + + +protected int +background + + +protected int +textColor + + +protected float +textSize + + +protected java.lang.String[] +times + + +protected int +timeTextColor + + +protected float +timeTextSize + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +OnSlideBuildAdapter() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +java.lang.String[] +getTimes() +获取时刻数组 + + + +android.view.View +getView(int pos, + android.view.LayoutInflater inflater, + int itemHeight, + int marTop) +构建每项 + + + +void +onInit(android.widget.LinearLayout layout, + float alpha) +初始化方法 + + + +OnSlideBuildAdapter +setBackground(int backgroundColor) + + +OnSlideBuildAdapter +setTextColor(int textColor) +设置节次文本颜色 + + + +OnSlideBuildAdapter +setTextSize(float textSize) +设置节次文本的大小 + + + +OnSlideBuildAdapter +setTimes(java.lang.String[] times) +设置时刻数组 + + + +OnSlideBuildAdapter +setTimeTextColor(int timeTextColor) +设置节次时间的文本颜色 + + + +OnSlideBuildAdapter +setTimeTextSize(float timeTextSize) +设置节次时间的文本大小 + + + + + + + +从类继承的方法 java.lang.Object +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait + + + + + + + + + + + + + + +字段详细资料 + + + + + +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 - +返回: + + + + + + + + +setBackground +public OnSlideBuildAdapter setBackground(int backgroundColor) + + + + + + + +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值 +返回: +构建好的一个侧边项 + + + + + + + + +onInit +public void onInit(android.widget.LinearLayout layout, + float alpha) +从接口复制的说明: ISchedule.OnSlideBuildListener +初始化方法 + +指定者: +onInit 在接口中 ISchedule.OnSlideBuildListener +参数: +layout - 日期栏容器 +alpha - 透明度 + + + + + + + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +类 OnSpaceItemClickAdapter + + + +java.lang.Object + + +com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter + + + + + + + +所有已实现的接口: +ISchedule.OnSpaceItemClickListener + + + +public class OnSpaceItemClickAdapter +extends java.lang.Object +implements ISchedule.OnSpaceItemClickListener +Created by Liu ZhuangFei on 2018/8/3. + + + + + + + + + + + +字段概要 + +字段 + +限定符和类型 +字段和说明 + + +protected android.widget.LinearLayout +flagLayout + + +protected int +itemHeight + + +protected int +itemWidth + + +protected int +marLeft + + +protected int +marTop + + +protected int +monthWidth + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +OnSpaceItemClickAdapter() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +void +onInit(android.widget.LinearLayout flagLayout, + int monthWidth, + int itemWidth, + int itemHeight, + int marTop, + int marLeft) +初始化方法 + + + +void +onSpaceItemClick(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() + + + + + + + + + +方法详细资料 + + + + + +onSpaceItemClick +public void onSpaceItemClick(int day, + int start) +从接口复制的说明: ISchedule.OnSpaceItemClickListener +当课程项被点击时回调 + +指定者: +onSpaceItemClick 在接口中 ISchedule.OnSpaceItemClickListener +参数: +day - 表示周几,0:周一,6:周日 +start - 表示点击空白格子的节次,1:第一节 + + + + + + + + +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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +类 OnWeekChangedAdapter + + + +java.lang.Object + + +com.zhuangfei.timetable.listener.OnWeekChangedAdapter + + + + + + + +所有已实现的接口: +ISchedule.OnWeekChangedListener + + + +public class OnWeekChangedAdapter +extends java.lang.Object +implements ISchedule.OnWeekChangedListener + + + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +OnWeekChangedAdapter() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +void +onWeekChanged(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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +类 OnWeekItemClickedAdapter + + + +java.lang.Object + + +com.zhuangfei.timetable.listener.OnWeekItemClickedAdapter + + + + + + + +所有已实现的接口: +IWeekView.OnWeekItemClickedListener + + + +public class OnWeekItemClickedAdapter +extends java.lang.Object +implements IWeekView.OnWeekItemClickedListener +WeekView的Item点击监听默认实现 + + + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +OnWeekItemClickedAdapter() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +void +onWeekClicked(int curWeek) +当Item被点击时回调 + + + + + + + +从类继承的方法 java.lang.Object +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait + + + + + + + + + + + + + + +构造器详细资料 + + + + + +OnWeekItemClickedAdapter +public OnWeekItemClickedAdapter() + + + + + + + + + +方法详细资料 + + + + + +onWeekClicked +public void onWeekClicked(int curWeek) +从接口复制的说明: IWeekView.OnWeekItemClickedListener +当Item被点击时回调 + +指定者: +onWeekClicked 在接口中 IWeekView.OnWeekItemClickedListener +参数: +curWeek - 选择的周次 + + + + + + + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.listener +类 OnWeekLeftClickedAdapter + + + +java.lang.Object + + +com.zhuangfei.timetable.listener.OnWeekLeftClickedAdapter + + + + + + + +所有已实现的接口: +IWeekView.OnWeekLeftClickedListener + + + +public class OnWeekLeftClickedAdapter +extends java.lang.Object +implements IWeekView.OnWeekLeftClickedListener +WeekView的左侧按钮点击监听默认实现 + + + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +OnWeekLeftClickedAdapter() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +void +onWeekLeftClicked() +当"设置当前周"按钮被点击时回调 + + + + + + + +从类继承的方法 java.lang.Object +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait + + + + + + + + + + + + + + +构造器详细资料 + + + + + +OnWeekLeftClickedAdapter +public OnWeekLeftClickedAdapter() + + + + + + + + + +方法详细资料 + + + + + +onWeekLeftClicked +public void onWeekLeftClicked() +从接口复制的说明: IWeekView.OnWeekLeftClickedListener +当"设置当前周"按钮被点击时回调 + +指定者: +onWeekLeftClicked 在接口中 IWeekView.OnWeekLeftClickedListener + + + + + + + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + 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 + +接口 + +ISchedule +ISchedule.OnDateBuildListener +ISchedule.OnFlaglayoutClickListener +ISchedule.OnItemBuildListener +ISchedule.OnItemClickListener +ISchedule.OnItemLongClickListener +ISchedule.OnScrollViewBuildListener +ISchedule.OnSlideBuildListener +ISchedule.OnSpaceItemClickListener +ISchedule.OnWeekChangedListener +IWeekView +IWeekView.OnWeekItemClickedListener +IWeekView.OnWeekLeftClickedListener + +类 + +OnDateBuildAapter +OnFlaglayoutClickAdapter +OnItemBuildAdapter +OnItemClickAdapter +OnItemLongClickAdapter +OnScrollViewBuildAdapter +OnSlideBuildAdapter +OnSpaceItemClickAdapter +OnWeekChangedAdapter +OnWeekItemClickedAdapter +OnWeekLeftClickedAdapter + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个程序包 +下一个程序包 + + +框架 +无框架 + + +所有类 + + + + + + + + + +程序包 com.zhuangfei.timetable.listener + +该包中存放接口以及默认的实现类 + +请参阅: 说明 + + + + + +接口概要 + +接口 +说明 + + + +ISchedule + +与Schedule有关的接口. + + + +ISchedule.OnDateBuildListener + +日期构造监听器 + + + +ISchedule.OnFlaglayoutClickListener + +旗标布局点击监听器 + + + +ISchedule.OnItemBuildListener + +课程项构建时回调 + + + +ISchedule.OnItemClickListener + +课程项点击监听器 + + + +ISchedule.OnItemLongClickListener + +课程项长按事件监听器 + + + +ISchedule.OnScrollViewBuildListener + +滚动布局构建监听器 + + + +ISchedule.OnSlideBuildListener + +侧边栏构建监听器 + + + +ISchedule.OnSpaceItemClickListener + +空白格子点击监听器 + + + +ISchedule.OnWeekChangedListener + +周次改变监听器 + + + +IWeekView + +WeekView的相关接口. + + + +IWeekView.OnWeekItemClickedListener + +WeekView的Item点击监听器 + + + +IWeekView.OnWeekLeftClickedListener + +WeekView的左侧(设置当前周)的点击监听器 + + + + + + + +类概要 + +类 +说明 + + + +OnDateBuildAapter + +日期栏的构建过程. + + + +OnFlaglayoutClickAdapter + +Created by Liu ZhuangFei on 2018/8/3. + + + +OnItemBuildAdapter + +Item构建监听器的默认实现. + + + +OnItemClickAdapter + +Item点击的默认实现. + + + +OnItemLongClickAdapter + +Created by Liu ZhuangFei on 2018/8/3. + + + +OnScrollViewBuildAdapter + +滚动布局构建监听的默认实现 + + + +OnSlideBuildAdapter + +控件实现的一个可以显示时间的侧边栏适配器 + Created by Liu ZhuangFei on 2018/6/18. + + + +OnSpaceItemClickAdapter + +Created by Liu ZhuangFei on 2018/8/3. + + + +OnWeekChangedAdapter + + + +OnWeekItemClickedAdapter + +WeekView的Item点击监听默认实现 + + + +OnWeekLeftClickedAdapter + +WeekView的左侧按钮点击监听默认实现 + + + + + + + + + +程序包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 类分层结构 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + +程序包com.zhuangfei.timetable.listener的分层结构 +程序包分层结构: + +所有程序包 + + + +类分层结构 + +java.lang.Object + +com.zhuangfei.timetable.listener.OnDateBuildAapter (implements com.zhuangfei.timetable.listener.ISchedule.OnDateBuildListener) +com.zhuangfei.timetable.listener.OnFlaglayoutClickAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnFlaglayoutClickListener) +com.zhuangfei.timetable.listener.OnItemBuildAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnItemBuildListener) +com.zhuangfei.timetable.listener.OnItemClickAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnItemClickListener) +com.zhuangfei.timetable.listener.OnItemLongClickAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnItemLongClickListener) +com.zhuangfei.timetable.listener.OnScrollViewBuildAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnScrollViewBuildListener) +com.zhuangfei.timetable.listener.OnSlideBuildAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnSlideBuildListener) +com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnSpaceItemClickListener) +com.zhuangfei.timetable.listener.OnWeekChangedAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnWeekChangedListener) +com.zhuangfei.timetable.listener.OnWeekItemClickedAdapter (implements com.zhuangfei.timetable.listener.IWeekView.OnWeekItemClickedListener) +com.zhuangfei.timetable.listener.OnWeekLeftClickedAdapter (implements com.zhuangfei.timetable.listener.IWeekView.OnWeekLeftClickedListener) + + + +接口分层结构 + +com.zhuangfei.timetable.listener.ISchedule +com.zhuangfei.timetable.listener.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.IWeekView +com.zhuangfei.timetable.listener.IWeekView.OnWeekItemClickedListener +com.zhuangfei.timetable.listener.IWeekView.OnWeekLeftClickedListener + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +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) + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +int +compareTo(Schedule o) + + +int +getColorRandom() + + +int +getDay() + + +java.util.Map<java.lang.String,java.lang.Object> +getExtras() + + +java.lang.String +getName() + + +java.lang.String +getRoom() + + +int +getStart() + + +int +getStep() + + +java.lang.String +getTeacher() + + +java.util.List<java.lang.Integer> +getWeekList() + + +void +putExtras(java.lang.String key, + java.lang.Object val) + + +void +setColorRandom(int colorRandom) + + +void +setDay(int day) + + +void +setExtras(java.util.Map<java.lang.String,java.lang.Object> map) + + +void +setName(java.lang.String name) + + +void +setRoom(java.lang.String room) + + +void +setStart(int start) + + +void +setStep(int step) + + +void +setTeacher(java.lang.String teacher) + + +void +setWeekList(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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +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) + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +ScheduleColorPool +add(int... colorIds) +在颜色池中添加一些自定义的颜色 + + + +ScheduleColorPool +addAll(java.util.Collection<? extends java.lang.Integer> ownColorPool) +将指定集合中的颜色加入到颜色池中 + + + +ScheduleColorPool +clear() +清空颜色池,清空默认颜色 + + + +int +getColor(int i) +根据索引获取颜色,索引越界默认返回 Color.GRAY + + + +int +getColorAuto(int i) +使用模运算根据索引从颜色池中获取颜色, + 如果i<0,转换为正数, + 否则:重新计算索引j=i mod size + + + +int +getColorAutoWithAlpha(int random, + float alpha) +从颜色池中取指定透明度的颜色 + + + +java.util.List<java.lang.Integer> +getPoolInstance() +得到颜色池的实例,即List集合 + + + +int +getUselessColor() +获取非本周课程颜色 + + + +int +getUselessColorWithAlpha(float alpha) +获取非本周课程颜色 + + + +ScheduleColorPool +reset() +重置,先在池子里添加一些默认的课程项颜色 + + + +ScheduleColorPool +setUselessColor(int uselessColor) +设置非本周课程颜色 + + + +int +size() +颜色池的大小 + + + + + + + +从类继承的方法 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.model +接口 ScheduleEnable + + + + + + + +public interface ScheduleEnable +该接口定义数据转换的规范, + 用户自定义课程实体类需要实现该接口以及实现其中的转换方法, + 在设置数据源时可以使用自定义的课程实体,但是必须实现该接口 + + + + + + + + + + + +方法概要 + +所有方法 实例方法 抽象方法 + +限定符和类型 +方法和说明 + + +Schedule +getSchedule() +获取Schedule + + + + + + + + + + + + + + + + +方法详细资料 + + + + + +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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.model +类 ScheduleSupport + + + +java.lang.Object + + +com.zhuangfei.timetable.model.ScheduleSupport + + + + + + + + +public class ScheduleSupport +extends java.lang.Object +课程表的工具包,主要提供几个便捷的方法 + + + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +ScheduleSupport() + + + + + + + + + +方法概要 + +所有方法 静态方法 具体方法 + +限定符和类型 +方法和说明 + + +static Schedule +findRealSubject(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 int +getPx(android.content.Context context, + int dp) +内部使用的是:context.getResources().getDimensionPixelSize(dp); + + + +static java.util.List<java.lang.String> +getWeekDate() +获取本周的周一-周日的所有日期 + + + +static boolean +isThisWeek(Schedule subject, + int cur_week) +判断该课是否为本周的 + + + +static void +sortList(java.util.List<Schedule> data) + + +static void +sortList(java.util.List<Schedule>[] data) +按照上课节次排序 + + + +static java.util.List<Schedule>[] +splitSubjectWithDay(java.util.List<Schedule> dataSource) +将源数据拆分为数组的七个元素,每个元素为一个集合, + 依次为周一-周日的课程集合 + + + +static int +timeTransfrom(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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.model +接口 WeekViewEnable<T> + + + + + + +所有已知实现类: +WeekView + + + +public interface WeekViewEnable<T> +如果需要自定义周次选择栏,请实现该接口, + 它仅仅提供一个规范,可用可不用 + Created by Liu ZhuangFei on 2018/7/28. + + + + + + + + + + + +方法概要 + +所有方法 实例方法 抽象方法 + +限定符和类型 +方法和说明 + + +T +curWeek(int curWeek) +设置当前周 + + + +T +data(java.util.List<Schedule> scheduleList) +设置数据源 + + + +java.util.List<Schedule> +dataSource() +获取数据源 + + + +T +isShow(boolean isShow) +设置控件的可见性 + + + +boolean +isShowing() +判断该控件是否显示 + + + +int +itemCount() +获取项数 + + + +T +itemCount(int count) +设置项数 + + + +T +showView() +初次构建时调用,显示周次选择布局 + + + +T +source(java.util.List<? extends ScheduleEnable> list) +设置数据源 + + + +T +updateView() +当前周被改变后可以调用该方式修正一下底部的文本 + + + + + + + + + + + + + + + + +方法详细资料 + + + + + +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 + +接口 + +ScheduleEnable +WeekViewEnable + +类 + +Schedule +ScheduleColorPool +ScheduleSupport + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个程序包 +下一个程序包 + + +框架 +无框架 + + +所有类 + + + + + + + + + +程序包 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 类分层结构 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + +程序包com.zhuangfei.timetable.model的分层结构 +程序包分层结构: + +所有程序包 + + + +类分层结构 + +java.lang.Object + +com.zhuangfei.timetable.model.Schedule (implements java.lang.Comparable<T>, java.io.Serializable) +com.zhuangfei.timetable.model.ScheduleColorPool +com.zhuangfei.timetable.model.ScheduleSupport + + + +接口分层结构 + +com.zhuangfei.timetable.model.ScheduleEnable +com.zhuangfei.timetable.model.WeekViewEnable<T> + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +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() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +void +changeWeek(int week, + boolean isCurWeek) + + +android.widget.LinearLayout +getDateLayout() + + +android.widget.LinearLayout +getFlagLayout() + + +void +init(android.content.Context context, + android.util.AttributeSet attrs, + TimetableView view) + + +void +setWeekendsVisiable(boolean isShow) + + +void +showView() + + +void +updateDateView() + + +void +updateSlideView() + + + + + + +从类继承的方法 java.lang.Object +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait + + + + + + + + + + + + + + +构造器详细资料 + + + + + +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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.operater +类 SimpleOperater + + + +java.lang.Object + + +com.zhuangfei.timetable.operater.AbsOperater + + +com.zhuangfei.timetable.operater.SimpleOperater + + + + + + + + + + +public class SimpleOperater +extends AbsOperater +课表业务操作者,TimetableView中只涉及属性的设置,方法的具体实现在这里. + 常用的方法也就四个,如下 + +另请参阅: +changeWeek(int, boolean), +showView(), +updateDateView(), +Created by Liu ZhuangFei on 2018/9/1. + + + + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +SimpleOperater() + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +void +changeWeek(int week, + boolean isCurWeek) +切换周次 + + + +protected boolean +checkPosition(int day, + int start) +判断位置是否有课 + + + +android.widget.LinearLayout +getDateLayout() + + +android.widget.LinearLayout +getFlagLayout() +获取旗标布局 + + + +protected float +getPerWidth() + + +void +init(android.content.Context context, + android.util.AttributeSet attrs, + TimetableView view) + + +protected void +initAttr(android.util.AttributeSet attrs) +获取自定义属性 + + + +protected void +initPanel() +初始化panel并为panel设置事件监听 + + + +void +newSlideView(android.widget.LinearLayout slidelayout) +构建侧边栏 + + + +protected void +onPanelClicked(android.view.View view, + float y) +点击panel时的事件响应 + + + +void +setWeekendsVisiable(boolean isShow) +设置周末的可见性 + + + +void +showView() +绘制课程表 + + + +void +updateDateView() +更新日期栏 + + + +void +updateSlideView() +侧边栏更新 + + + + + + + +从类继承的方法 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() + + + + + + + +updateDateView +public void updateDateView() +更新日期栏 + +覆盖: +updateDateView 在类中 AbsOperater + + + + + + + + +updateSlideView +public void updateSlideView() +侧边栏更新 + +覆盖: +updateSlideView 在类中 AbsOperater + + + + + + + + +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 + +类 + +AbsOperater +SimpleOperater + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个程序包 +下一个程序包 + + +框架 +无框架 + + +所有类 + + + + + + + + + +程序包 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 类分层结构 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + +程序包com.zhuangfei.timetable.operater的分层结构 +程序包分层结构: + +所有程序包 + + + +类分层结构 + +java.lang.Object + +com.zhuangfei.timetable.operater.AbsOperater + +com.zhuangfei.timetable.operater.SimpleOperater + + + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + + 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 + +类 + +TimetableView + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个程序包 +下一个程序包 + + +框架 +无框架 + + +所有类 + + + + + + + + + +程序包 com.zhuangfei.timetable + +TimetableView是课表控件,主要是操作该对象进而完成对属性设置以及对视图的创建、更新 + +请参阅: 说明 + + + + + +类概要 + +类 +说明 + + + +TimetableView + +课程表控件,该类主要负责属性的设置,业务逻辑由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 + + + + + + + + + +程序包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 类分层结构 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + +程序包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 + +com.zhuangfei.timetable.TimetableView + + + + + + + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +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 int +alphaColor(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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +com.zhuangfei.timetable.utils +类 ScreenUtils + + + +java.lang.Object + + +com.zhuangfei.timetable.utils.ScreenUtils + + + + + + + + +public class ScreenUtils +extends java.lang.Object +尺寸工具类 + + + + + + + + + + + +构造器概要 + +构造器 + +构造器和说明 + + +ScreenUtils() + + + + + + + + + +方法概要 + +所有方法 静态方法 具体方法 + +限定符和类型 +方法和说明 + + +static int +dip2px(android.content.Context context, + float dpValue) +dp转换为px + + + +static int +getHeightInDp(android.content.Context context) +获取屏幕的高度Dp + + + +static int +getHeightInPx(android.content.Context context) +获取屏幕的高度Px + + + +static int +getWidthInDp(android.content.Context context) +获取屏幕的宽度Dp + + + +static int +getWidthInPx(android.content.Context context) +获取屏幕的宽度Px + + + +static int +px2dip(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 + +类 + +ColorUtils +ScreenUtils + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个程序包 +下一个程序包 + + +框架 +无框架 + + +所有类 + + + + + + + + + +程序包 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 类分层结构 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + +程序包com.zhuangfei.timetable.utils的分层结构 +程序包分层结构: + +所有程序包 + + + +类分层结构 + +java.lang.Object + +com.zhuangfei.timetable.utils.ColorUtils +com.zhuangfei.timetable.utils.ScreenUtils + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +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) + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +void +drawPoint(android.graphics.Canvas canvas, + int x, + int y, + int radius, + android.graphics.Paint p) +画点 + + + +int[][] +getArray() +根据此数据源分析出一个二维数组. + + + +java.util.List<Schedule> +getDataSource() +获取数据源 + + + +android.graphics.Paint +getGrayPaint() +获取暗色的画笔 + + + +android.graphics.Paint +getLightPaint() +获取亮色的画笔 + + + +protected void +onDraw(android.graphics.Canvas canvas) + + +protected void +onSizeChanged(int w, + int h, + int oldw, + int oldh) + + +PerWeekView +setData(java.util.List<Schedule> list, + int curWeek) +设置数据源 + + + +PerWeekView +setGrayColor(int grayColor) +设置暗色 + + + +PerWeekView +setLightColor(int lightColor) +设置亮色 + + + +PerWeekView +setRadiusInDp(int radiusDp) +设置半径Dp + + + +PerWeekView +setRadiusInPx(int radiusPx) +设置半径Px + + + +PerWeekView +setSource(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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + +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) + + + + + + + + + +方法概要 + +所有方法 实例方法 具体方法 + +限定符和类型 +方法和说明 + + +WeekView +callback(IWeekView.OnWeekItemClickedListener onWeekItemClickedListener) +设置Item点击监听 + + + +WeekView +callback(IWeekView.OnWeekLeftClickedListener onWeekLeftClickedListener) +设置左侧按钮点击监听 + + + +WeekView +curWeek(int curWeek) +设置当前周 + + + +WeekView +data(java.util.List<Schedule> scheduleList) +设置数据源 + + + +java.util.List<Schedule> +dataSource() +获取数据源 + + + +WeekView +hideLeftLayout() +隐藏左侧设置当前周的控件 + + + +WeekView +isShow(boolean isShow) +设置控件的可见性 + + + +boolean +isShowing() +判断该控件是否显示 + + + +int +itemCount() +获取项数 + + + +WeekView +itemCount(int count) +设置项数 + + + +IWeekView.OnWeekItemClickedListener +onWeekItemClickedListener() +获取Item点击监听 + + + +IWeekView.OnWeekLeftClickedListener +onWeekLeftClickedListener() +获取左侧按钮点击监听 + + + +void +resetBackground() +重置背景色 + + + +WeekView +showView() +初次构建时调用,显示周次选择布局 + + + +WeekView +source(java.util.List<? extends ScheduleEnable> list) +设置数据源 + + + +WeekView +updateView() +当前周被改变后可以调用该方式修正一下底部的文本 + + + + + + + +从类继承的方法 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 + + + + + + + + + + + + + + +构造器详细资料 + + + + + +WeekView +public WeekView(android.content.Context context) + + + + + + + +WeekView +public WeekView(android.content.Context context, + android.util.AttributeSet attrs) + + + + + + + + + +方法详细资料 + + + + + +onWeekItemClickedListener +public IWeekView.OnWeekItemClickedListener onWeekItemClickedListener() +获取Item点击监听 + +返回: + + + + + + + + +callback +public WeekView callback(IWeekView.OnWeekItemClickedListener onWeekItemClickedListener) +设置Item点击监听 + +参数: +onWeekItemClickedListener - +返回: + + + + + + + + +onWeekLeftClickedListener +public IWeekView.OnWeekLeftClickedListener onWeekLeftClickedListener() +获取左侧按钮点击监听 + +返回: + + + + + + + + +callback +public WeekView callback(IWeekView.OnWeekLeftClickedListener onWeekLeftClickedListener) +设置左侧按钮点击监听 + +参数: +onWeekLeftClickedListener - +返回: + + + + + + + + +curWeek +public WeekView curWeek(int curWeek) +设置当前周 + +指定者: +curWeek 在接口中 WeekViewEnable<WeekView> +参数: +curWeek - +返回: + + + + + + + + +itemCount +public WeekView itemCount(int count) +设置项数 + +指定者: +itemCount 在接口中 WeekViewEnable<WeekView> +参数: +count - +返回: + + + + + + + + +itemCount +public int itemCount() +从接口复制的说明: WeekViewEnable +获取项数 + +指定者: +itemCount 在接口中 WeekViewEnable<WeekView> +返回: + + + + + + + + +source +public WeekView source(java.util.List<? extends ScheduleEnable> list) +设置数据源 + +指定者: +source 在接口中 WeekViewEnable<WeekView> +参数: +list - +返回: + + + + + + + + +data +public WeekView data(java.util.List<Schedule> scheduleList) +设置数据源 + +指定者: +data 在接口中 WeekViewEnable<WeekView> +参数: +scheduleList - +返回: + + + + + + + + +dataSource +public java.util.List<Schedule> dataSource() +获取数据源 + +指定者: +dataSource 在接口中 WeekViewEnable<WeekView> +返回: + + + + + + + + +showView +public WeekView showView() +初次构建时调用,显示周次选择布局 + +指定者: +showView 在接口中 WeekViewEnable<WeekView> + + + + + + + + +updateView +public WeekView updateView() +当前周被改变后可以调用该方式修正一下底部的文本 + +指定者: +updateView 在接口中 WeekViewEnable<WeekView> +返回: + + + + + + + + +resetBackground +public void resetBackground() +重置背景色 + + + + + + + +hideLeftLayout +public WeekView hideLeftLayout() +隐藏左侧设置当前周的控件 + + + + + + + +isShow +public WeekView isShow(boolean isShow) +设置控件的可见性 + +指定者: +isShow 在接口中 WeekViewEnable<WeekView> +参数: +isShow - true:显示,false:隐藏 + + + + + + + + +isShowing +public boolean isShowing() +判断该控件是否显示 + +指定者: +isShowing 在接口中 WeekViewEnable<WeekView> +返回: + + + + + + + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个类 +下一个类 + + +框架 +无框架 + + +所有类 + + + + + + +概要: +嵌套 | +字段 | +构造器 | +方法 + + +详细资料: +字段 | +构造器 | +方法 + + + + + + + + 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 + +类 + +PerWeekView +WeekView + + + + 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 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个程序包 +下一个程序包 + + +框架 +无框架 + + +所有类 + + + + + + + + + +程序包 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 类分层结构 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + +程序包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 + +com.zhuangfei.timetable.view.WeekView (implements com.zhuangfei.timetable.model.WeekViewEnable<T>) + + + + + + + + + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + + 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 @@ + + + + + + +常量字段值 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + +常量字段值 +目录 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + + 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 @@ + + + + + + +已过时的列表 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + +已过时的 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 帮助 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + +此 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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 - 索引 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个字母 +下一个字母 + + +框架 +无框架 + + +所有类 + + + + + + + + +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 @@ + + + + + + +生成的文档 (无标题) + + + + + + + + + + +您的浏览器已禁用 JavaScript。 + +框架预警 +请使用框架功能查看此文档。如果看到此消息, 则表明您使用的是不支持框架的 Web 客户机。链接到非框架版本。 + + + 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 @@ + + + + + + +概览列表 + + + + + +所有类 + +程序包 + +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/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 @@ + + + + + + +概览 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + + +程序包 + +程序包 +说明 + + + +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 @@ + + + + + + +类分层结构 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + +所有程序包的分层结构 +程序包分层结构: + +com.zhuangfei.timetable, +com.zhuangfei.timetable.listener, +com.zhuangfei.timetable.model, +com.zhuangfei.timetable.operater, +com.zhuangfei.timetable.utils, +com.zhuangfei.timetable.view + + + +类分层结构 + +java.lang.Object + +com.zhuangfei.timetable.operater.AbsOperater + +com.zhuangfei.timetable.operater.SimpleOperater + + +com.zhuangfei.timetable.utils.ColorUtils +com.zhuangfei.timetable.listener.OnDateBuildAapter (implements com.zhuangfei.timetable.listener.ISchedule.OnDateBuildListener) +com.zhuangfei.timetable.listener.OnFlaglayoutClickAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnFlaglayoutClickListener) +com.zhuangfei.timetable.listener.OnItemBuildAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnItemBuildListener) +com.zhuangfei.timetable.listener.OnItemClickAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnItemClickListener) +com.zhuangfei.timetable.listener.OnItemLongClickAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnItemLongClickListener) +com.zhuangfei.timetable.listener.OnScrollViewBuildAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnScrollViewBuildListener) +com.zhuangfei.timetable.listener.OnSlideBuildAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnSlideBuildListener) +com.zhuangfei.timetable.listener.OnSpaceItemClickAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnSpaceItemClickListener) +com.zhuangfei.timetable.listener.OnWeekChangedAdapter (implements com.zhuangfei.timetable.listener.ISchedule.OnWeekChangedListener) +com.zhuangfei.timetable.listener.OnWeekItemClickedAdapter (implements com.zhuangfei.timetable.listener.IWeekView.OnWeekItemClickedListener) +com.zhuangfei.timetable.listener.OnWeekLeftClickedAdapter (implements com.zhuangfei.timetable.listener.IWeekView.OnWeekLeftClickedListener) +com.zhuangfei.timetable.model.Schedule (implements java.lang.Comparable<T>, java.io.Serializable) +com.zhuangfei.timetable.model.ScheduleColorPool +com.zhuangfei.timetable.model.ScheduleSupport +com.zhuangfei.timetable.utils.ScreenUtils +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 + +com.zhuangfei.timetable.TimetableView +com.zhuangfei.timetable.view.WeekView (implements com.zhuangfei.timetable.model.WeekViewEnable<T>) + + + + + + + + + +接口分层结构 + +com.zhuangfei.timetable.listener.ISchedule +com.zhuangfei.timetable.listener.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.IWeekView +com.zhuangfei.timetable.listener.IWeekView.OnWeekItemClickedListener +com.zhuangfei.timetable.listener.IWeekView.OnWeekLeftClickedListener +com.zhuangfei.timetable.model.ScheduleEnable +com.zhuangfei.timetable.model.WeekViewEnable<T> + + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + + 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 @@ + + + + + + +序列化表格 + + + + + + + +您的浏览器已禁用 JavaScript。 + + + + + +跳过导航链接 + + + + +概览 +程序包 +类 +树 +已过时 +索引 +帮助 + + + + +上一个 +下一个 + + +框架 +无框架 + + +所有类 + + + + + + + + + +序列化表格 + + + + +程序包 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
public class TimetableView +extends android.widget.LinearLayout
SimpleOperater
showView()
changeWeek(int, boolean)
changeWeekOnly(int)
changeWeekForce(int)
updateView()
updateSlideView()
updateDateView()
AbsOperater
android.widget.LinearLayout.LayoutParams
android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
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
HORIZONTAL, SHOW_DIVIDER_BEGINNING, SHOW_DIVIDER_END, SHOW_DIVIDER_MIDDLE, SHOW_DIVIDER_NONE, VERTICAL
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
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)
TimetableView
alpha(float allAlpha)
alpha(float dateAlpha, + float slideAlpha, + float itemAlpha)
callback(ISchedule.OnDateBuildListener onDateBuildListener)
callback(ISchedule.OnFlaglayoutClickListener onFlaglayoutClickListener)
callback(ISchedule.OnItemBuildListener onItemBuildListener)
callback(ISchedule.OnItemClickListener onItemClickListener)
callback(ISchedule.OnItemLongClickListener onItemLongClickListener)
callback(ISchedule.OnScrollViewBuildListener onScrollViewBuildListener)
callback(ISchedule.OnSlideBuildListener onSlideBuildListener)
callback(ISchedule.OnSpaceItemClickListener onSpaceItemClickListener)
callback(ISchedule.OnWeekChangedListener onWeekChangedListener)
void
changeWeek(int week, + boolean isCurWeek)
changeWeekForce(int week)
changeWeekOnly(int week)
ScheduleColorPool
colorPool()
int
corner(boolean isThisWeek)
corner(int corner, + boolean isThisWeek)
cornerAll(int cornerValue)
java.lang.String
curTerm()
curTerm(java.lang.String curTerm)
curWeek()
curWeek(int curWeek)
curWeek(java.lang.String startTime)
data(java.util.List<Schedule> dataSource)
java.util.List<Schedule>
dataSource()
float
dateAlpha()
dp2px(int dp)
flagBgcolor()
flagBgcolor(int color)
android.widget.LinearLayout
flagLayout()
hideDateView()
hideFlaglayout()
boolean
isShowFlaglayout()
isShowFlaglayout(boolean isShowFlaglayout)
isShowNotCurWeek()
isShowNotCurWeek(boolean showNotCurWeek)
isShowWeekends()
isShowWeekends(boolean isShowWeekends)
itemAlpha()
itemHeight()
itemHeight(int itemHeightPx)
itemTextColor(int color, + boolean isThisWeek)
itemTextColorWithNotThis()
itemTextColorWithThisWeek()
marLeft()
marLeft(int marLeftPx)
marTop()
marTop(int marTopPx)
maxSlideItem()
maxSlideItem(int maxSlideItem)
monthWidth()
monthWidthDp(int monthWidthDp)
monthWidthPx(int monthWidthPx)
ISchedule.OnDateBuildListener
onDateBuildListener()
ISchedule.OnFlaglayoutClickListener
onFlaglayoutClickListener()
ISchedule.OnItemBuildListener
onItemBuildListener()
ISchedule.OnItemClickListener
onItemClickListener()
ISchedule.OnItemLongClickListener
onItemLongClickListener()
ISchedule.OnScrollViewBuildListener
onScrollViewBuildListener()
ISchedule.OnSlideBuildListener
onSlideBuildListener()
ISchedule.OnSpaceItemClickListener
onSpaceItemClickListener()
ISchedule.OnWeekChangedListener
onWeekChangedListener()
operater()
operater(AbsOperater operater)
resetFlagBgcolor()
showDateView()
showFlaglayout()
slideAlpha()
source(java.util.List<? extends ScheduleEnable> dataSource)
thisWeekCorner(int thisWeekCorner)
updateFlaglayout()
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
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
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayout
public TimetableView(android.content.Context context, + android.util.AttributeSet attrs)
context
attrs
public TimetableView isShowWeekends(boolean isShowWeekends)
isShowWeekends
public boolean isShowWeekends()
public AbsOperater operater()
public TimetableView operater(AbsOperater operater)
public TimetableView monthWidthDp(int monthWidthDp)
monthWidthDp
public TimetableView monthWidthPx(int monthWidthPx)
monthWidthPx
public int monthWidth()
public TimetableView itemTextColor(int color, + boolean isThisWeek)
color
isThisWeek
public int itemTextColorWithThisWeek()
public int itemTextColorWithNotThis()
public float itemAlpha()
public float slideAlpha()
public float dateAlpha()
public TimetableView alpha(float dateAlpha, + float slideAlpha, + float itemAlpha)
dateAlpha
slideAlpha
itemAlpha
public TimetableView alpha(float allAlpha)
allAlpha
public TimetableView flagBgcolor(int color)
public TimetableView resetFlagBgcolor()
public boolean isShowFlaglayout()
public TimetableView isShowFlaglayout(boolean isShowFlaglayout)
isShowFlaglayout
public int flagBgcolor()
public android.widget.LinearLayout flagLayout()
public TimetableView callback(ISchedule.OnItemLongClickListener onItemLongClickListener)
onItemLongClickListener
public ISchedule.OnItemLongClickListener onItemLongClickListener()
public TimetableView callback(ISchedule.OnDateBuildListener onDateBuildListener)
onDateBuildListener
public ISchedule.OnDateBuildListener onDateBuildListener()
public ISchedule.OnWeekChangedListener onWeekChangedListener()
public TimetableView callback(ISchedule.OnWeekChangedListener onWeekChangedListener)
onWeekChangedListener
public TimetableView callback(ISchedule.OnScrollViewBuildListener onScrollViewBuildListener)
onScrollViewBuildListener
public ISchedule.OnScrollViewBuildListener onScrollViewBuildListener()
public TimetableView callback(ISchedule.OnItemBuildListener onItemBuildListener)
onItemBuildListener
public TimetableView callback(ISchedule.OnItemClickListener onItemClickListener)
onItemClickListener
public ISchedule.OnSlideBuildListener onSlideBuildListener()
public TimetableView callback(ISchedule.OnSlideBuildListener onSlideBuildListener)
onSlideBuildListener
public TimetableView callback(ISchedule.OnSpaceItemClickListener onSpaceItemClickListener)
public ISchedule.OnSpaceItemClickListener onSpaceItemClickListener()
public TimetableView callback(ISchedule.OnFlaglayoutClickListener onFlaglayoutClickListener)
onFlaglayoutClickListener
public ISchedule.OnFlaglayoutClickListener onFlaglayoutClickListener()
public TimetableView curWeek(int curWeek)
curWeek
public TimetableView curWeek(java.lang.String startTime)
startTime
public int curWeek()
public TimetableView curTerm(java.lang.String curTerm)
curTerm
public java.lang.String curTerm()
public java.util.List<Schedule> dataSource()
public TimetableView data(java.util.List<Schedule> dataSource)
dataSource
public TimetableView source(java.util.List<? extends ScheduleEnable> dataSource)
public TimetableView maxSlideItem(int maxSlideItem)
maxSlideItem
public int maxSlideItem()
public ISchedule.OnItemBuildListener onItemBuildListener()
public ISchedule.OnItemClickListener onItemClickListener()
public TimetableView thisWeekCorner(int thisWeekCorner)
thisWeekCorner
public TimetableView cornerAll(int cornerValue)
cornerValue
public TimetableView corner(int corner, + boolean isThisWeek)
corner
public int corner(boolean isThisWeek)
public TimetableView isShowNotCurWeek(boolean showNotCurWeek)
showNotCurWeek
public boolean isShowNotCurWeek()
public ScheduleColorPool colorPool()
public int dp2px(int dp)
dp
public TimetableView marTop(int marTopPx)
marTopPx
public TimetableView marLeft(int marLeftPx)
marLeftPx
public TimetableView itemHeight(int itemHeightPx)
itemHeightPx
public int itemHeight()
public int marLeft()
public int marTop()
public void updateView()
public TimetableView hideFlaglayout()
public TimetableView showFlaglayout()
public void hideDateView()
public void showDateView()
public void updateDateView()
public void updateSlideView()
public void changeWeek(int week, + boolean isCurWeek)
week
isCurWeek
public void changeWeekOnly(int week)
public void changeWeekForce(int week)
public void updateFlaglayout()
public void showView()
public static interface ISchedule.OnDateBuildListener
android.view.View[]
getDateViews(android.view.LayoutInflater mInflate, + float monthWidth, + float perWidth, + int height)
onHighLight()
onInit(android.widget.LinearLayout layout, + float alpha)
onUpdateDate(int curWeek, + int targetWeek)
void onInit(android.widget.LinearLayout layout, + float alpha)
layout
alpha
android.view.View[] getDateViews(android.view.LayoutInflater mInflate, + float monthWidth, + float perWidth, + int height)
mInflate
monthWidth
perWidth
height
void onHighLight()
void onUpdateDate(int curWeek, + int targetWeek)
public static interface ISchedule.OnFlaglayoutClickListener
onFlaglayoutClick(int day, + int start)
void onFlaglayoutClick(int day, + int start)
day
start
public static interface ISchedule.OnItemBuildListener
getItemText(Schedule schedule, + boolean isThisWeek)
onItemUpdate(android.widget.FrameLayout layout, + android.widget.TextView textView, + android.widget.TextView countTextView, + Schedule schedule, + android.graphics.drawable.GradientDrawable gd)
java.lang.String getItemText(Schedule schedule, + boolean isThisWeek)
schedule
void onItemUpdate(android.widget.FrameLayout layout, + android.widget.TextView textView, + android.widget.TextView countTextView, + Schedule schedule, + android.graphics.drawable.GradientDrawable gd)
textView
countTextView
gd
public static interface ISchedule.OnItemClickListener
onItemClick(android.view.View v, + java.util.List<Schedule> scheduleList)
void onItemClick(android.view.View v, + java.util.List<Schedule> scheduleList)
v
scheduleList
public static interface ISchedule.OnItemLongClickListener
onLongClick(android.view.View v, + int day, + int start)
void onLongClick(android.view.View v, + int day, + int start)
public static interface ISchedule.OnScrollViewBuildListener
android.view.View
getScrollView(android.view.LayoutInflater mInflate)
android.view.View getScrollView(android.view.LayoutInflater mInflate)
public static interface ISchedule.OnSlideBuildListener
getView(int pos, + android.view.LayoutInflater inflater, + int itemHeight, + int marTop)
android.view.View getView(int pos, + android.view.LayoutInflater inflater, + int itemHeight, + int marTop)
pos
inflater
itemHeight
marTop
public static interface ISchedule.OnSpaceItemClickListener
onInit(android.widget.LinearLayout flagLayout, + int monthWidth, + int itemWidth, + int itemHeight, + int marTop, + int marLeft)
onSpaceItemClick(int day, + int start)
void onSpaceItemClick(int day, + int start)
void onInit(android.widget.LinearLayout flagLayout, + int monthWidth, + int itemWidth, + int itemHeight, + int marTop, + int marLeft)
flagLayout
itemWidth
public static interface ISchedule.OnWeekChangedListener
onWeekChanged(int curWeek)
void onWeekChanged(int curWeek)
public interface ISchedule
static interface
public static interface IWeekView.OnWeekItemClickedListener
onWeekClicked(int week)
void onWeekClicked(int week)
public static interface IWeekView.OnWeekLeftClickedListener
onWeekLeftClicked()
void onWeekLeftClicked()
public interface IWeekView
IWeekView.OnWeekItemClickedListener
IWeekView.OnWeekLeftClickedListener
public class OnDateBuildAapter +extends java.lang.Object +implements ISchedule.OnDateBuildListener
protected float
protected int
background
protected java.lang.String[]
dateArray
protected android.widget.LinearLayout
protected android.widget.LinearLayout[]
layouts
protected android.widget.TextView[]
textViews
protected java.util.List<java.lang.String>
weekDates
OnDateBuildAapter()
protected void
activeDateBackground(int weekDay)
java.lang.String[]
getStringArray()
initDateBackground()
protected android.view.View
onBuildDayLayout(android.view.LayoutInflater mInflate, + int pos, + int width, + int height)
onBuildMonthLayout(android.view.LayoutInflater mInflate, + int width, + int height)
OnDateBuildAapter
setBackground(int background)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected android.widget.TextView[] textViews
protected android.widget.LinearLayout[] layouts
protected int background
protected float alpha
protected java.lang.String[] dateArray
protected java.util.List<java.lang.String> weekDates
protected android.widget.LinearLayout layout
public OnDateBuildAapter()
public OnDateBuildAapter setBackground(int background)
public void onInit(android.widget.LinearLayout layout, + float alpha)
onInit
public android.view.View[] getDateViews(android.view.LayoutInflater mInflate, + float monthWidth, + float perWidth, + int height)
getDateViews
public void onHighLight()
onHighLight
public void onUpdateDate(int curWeek, + int targetWeek)
onUpdateDate
protected android.view.View onBuildMonthLayout(android.view.LayoutInflater mInflate, + int width, + int height)
width
protected android.view.View onBuildDayLayout(android.view.LayoutInflater mInflate, + int pos, + int width, + int height)
public java.lang.String[] getStringArray()
protected void initDateBackground()
protected void activeDateBackground(int weekDay)
public class OnFlaglayoutClickAdapter +extends java.lang.Object +implements ISchedule.OnFlaglayoutClickListener
OnFlaglayoutClickAdapter()
public OnFlaglayoutClickAdapter()
public void onFlaglayoutClick(int day, + int start)
onFlaglayoutClick
public class OnItemBuildAdapter +extends java.lang.Object +implements ISchedule.OnItemBuildListener
OnItemBuildAdapter()
public OnItemBuildAdapter()
public java.lang.String getItemText(Schedule schedule, + boolean isThisWeek)
getItemText
public void onItemUpdate(android.widget.FrameLayout layout, + android.widget.TextView textView, + android.widget.TextView countTextView, + Schedule schedule, + android.graphics.drawable.GradientDrawable gd)
onItemUpdate
public class OnItemClickAdapter +extends java.lang.Object +implements ISchedule.OnItemClickListener
OnItemClickAdapter()
public OnItemClickAdapter()
public void onItemClick(android.view.View v, + java.util.List<Schedule> scheduleList)
onItemClick
public class OnItemLongClickAdapter +extends java.lang.Object +implements ISchedule.OnItemLongClickListener
OnItemLongClickAdapter()
public OnItemLongClickAdapter()
public void onLongClick(android.view.View v, + int day, + int start)
onLongClick
public class OnScrollViewBuildAdapter +extends java.lang.Object +implements ISchedule.OnScrollViewBuildListener
OnScrollViewBuildAdapter()
public OnScrollViewBuildAdapter()
public android.view.View getScrollView(android.view.LayoutInflater mInflate)
getScrollView
public class OnSlideBuildAdapter +extends java.lang.Object +implements ISchedule.OnSlideBuildListener
textColor
textSize
times
timeTextColor
timeTextSize
OnSlideBuildAdapter()
getTimes()
OnSlideBuildAdapter
setBackground(int backgroundColor)
setTextColor(int textColor)
setTextSize(float textSize)
setTimes(java.lang.String[] times)
setTimeTextColor(int timeTextColor)
setTimeTextSize(float timeTextSize)
protected java.lang.String[] times
protected int textColor
protected float textSize
protected float timeTextSize
protected int timeTextColor
public OnSlideBuildAdapter()
public OnSlideBuildAdapter setTimes(java.lang.String[] times)
public OnSlideBuildAdapter setBackground(int backgroundColor)
public java.lang.String[] getTimes()
public OnSlideBuildAdapter setTextColor(int textColor)
public OnSlideBuildAdapter setTextSize(float textSize)
public OnSlideBuildAdapter setTimeTextColor(int timeTextColor)
public OnSlideBuildAdapter setTimeTextSize(float timeTextSize)
public android.view.View getView(int pos, + android.view.LayoutInflater inflater, + int itemHeight, + int marTop)
getView
public class OnSpaceItemClickAdapter +extends java.lang.Object +implements ISchedule.OnSpaceItemClickListener
marLeft
OnSpaceItemClickAdapter()
protected android.widget.LinearLayout flagLayout
protected int itemHeight
protected int itemWidth
protected int monthWidth
protected int marTop
protected int marLeft
public OnSpaceItemClickAdapter()
public void onSpaceItemClick(int day, + int start)
onSpaceItemClick
public void onInit(android.widget.LinearLayout flagLayout, + int monthWidth, + int itemWidth, + int itemHeight, + int marTop, + int marLeft)
public class OnWeekChangedAdapter +extends java.lang.Object +implements ISchedule.OnWeekChangedListener
OnWeekChangedAdapter()
public OnWeekChangedAdapter()
public void onWeekChanged(int curWeek)
onWeekChanged
public class OnWeekItemClickedAdapter +extends java.lang.Object +implements IWeekView.OnWeekItemClickedListener
OnWeekItemClickedAdapter()
onWeekClicked(int curWeek)
public OnWeekItemClickedAdapter()
public void onWeekClicked(int curWeek)
onWeekClicked
public class OnWeekLeftClickedAdapter +extends java.lang.Object +implements IWeekView.OnWeekLeftClickedListener
OnWeekLeftClickedAdapter()
public OnWeekLeftClickedAdapter()
public void onWeekLeftClicked()
onWeekLeftClicked
请参阅: 说明
public class Schedule +extends java.lang.Object +implements java.io.Serializable, java.lang.Comparable<Schedule>
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)
compareTo(Schedule o)
getColorRandom()
getDay()
java.util.Map<java.lang.String,java.lang.Object>
getExtras()
getName()
getRoom()
getStart()
getStep()
getTeacher()
java.util.List<java.lang.Integer>
getWeekList()
putExtras(java.lang.String key, + java.lang.Object val)
setColorRandom(int colorRandom)
setDay(int day)
setExtras(java.util.Map<java.lang.String,java.lang.Object> map)
setName(java.lang.String name)
setRoom(java.lang.String room)
setStart(int start)
setStep(int step)
setTeacher(java.lang.String teacher)
setWeekList(java.util.List<java.lang.Integer> weekList)
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)
public Schedule()
public java.util.Map<java.lang.String,java.lang.Object> getExtras()
public void setExtras(java.util.Map<java.lang.String,java.lang.Object> map)
public void putExtras(java.lang.String key, + java.lang.Object val)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getRoom()
public void setRoom(java.lang.String room)
public java.lang.String getTeacher()
public void setTeacher(java.lang.String teacher)
public void setWeekList(java.util.List<java.lang.Integer> weekList)
public java.util.List<java.lang.Integer> getWeekList()
public int getStart()
public void setStart(int start)
public int getStep()
public void setStep(int step)
public int getDay()
public void setDay(int day)
public int getColorRandom()
public void setColorRandom(int colorRandom)
public int compareTo(Schedule o)
compareTo
java.lang.Comparable<Schedule>
public class ScheduleColorPool +extends java.lang.Object
ScheduleColorPool(android.content.Context context)
add(int... colorIds)
addAll(java.util.Collection<? extends java.lang.Integer> ownColorPool)
clear()
getColor(int i)
getColorAuto(int i)
getColorAutoWithAlpha(int random, + float alpha)
getPoolInstance()
getUselessColor()
getUselessColorWithAlpha(float alpha)
reset()
setUselessColor(int uselessColor)
size()
public ScheduleColorPool(android.content.Context context)
public int getUselessColor()
public int getUselessColorWithAlpha(float alpha)
public ScheduleColorPool setUselessColor(int uselessColor)
uselessColor
public java.util.List<java.lang.Integer> getPoolInstance()
public int getColorAutoWithAlpha(int random, + float alpha)
random
public int getColor(int i)
i
public int getColorAuto(int i)
public ScheduleColorPool addAll(java.util.Collection<? extends java.lang.Integer> ownColorPool)
ownColorPool
public int size()
public ScheduleColorPool clear()
public ScheduleColorPool add(int... colorIds)
colorIds
public ScheduleColorPool reset()
public interface ScheduleEnable
Schedule
getSchedule()
Schedule getSchedule()
public class ScheduleSupport +extends java.lang.Object
ScheduleSupport()
static Schedule
findRealSubject(int start, + int curWeek, + java.util.List<Schedule> scheduleList)
static java.util.List<Schedule>
findSubjects(Schedule subject, + java.util.List<Schedule> data)
fliterSchedule(java.util.List<Schedule> data, + int curWeek, + boolean isShowNotCurWeek)
getAllSubjectsWithDay(java.util.List<Schedule> scheduleList, + int day)
getColorReflect(java.util.List<Schedule> schedules)
static java.util.List<java.lang.String>
getDateStringFromWeek(int curWeek, + int targetWeek)
getHaveSubjectsWithDay(java.util.List<Schedule> scheduleList, + int curWeek, + int day)
static int
getPx(android.content.Context context, + int dp)
getWeekDate()
static boolean
isThisWeek(Schedule subject, + int cur_week)
static void
sortList(java.util.List<Schedule> data)
sortList(java.util.List<Schedule>[] data)
static java.util.List<Schedule>[]
splitSubjectWithDay(java.util.List<Schedule> dataSource)
timeTransfrom(java.lang.String startTime)
transform(java.util.List<? extends ScheduleEnable> dataSource)
public ScheduleSupport()
public static java.util.List<java.lang.String> getDateStringFromWeek(int curWeek, + int targetWeek)
targetWeek
public static java.util.List<java.lang.String> getWeekDate()
public static int timeTransfrom(java.lang.String startTime)
public static java.util.List<Schedule> getColorReflect(java.util.List<Schedule> schedules)
schedules
public static int getPx(android.content.Context context, + int dp)
public static java.util.List<Schedule> transform(java.util.List<? extends ScheduleEnable> dataSource)
public static java.util.List<Schedule>[] splitSubjectWithDay(java.util.List<Schedule> dataSource)
public static java.util.List<Schedule> getHaveSubjectsWithDay(java.util.List<Schedule> scheduleList, + int curWeek, + int day)
public static java.util.List<Schedule> getAllSubjectsWithDay(java.util.List<Schedule> scheduleList, + int day)
public static java.util.List<Schedule> findSubjects(Schedule subject, + java.util.List<Schedule> data)
subject
data
public static Schedule findRealSubject(int start, + int curWeek, + java.util.List<Schedule> scheduleList)
public static void sortList(java.util.List<Schedule>[] data)
public static void sortList(java.util.List<Schedule> data)
public static boolean isThisWeek(Schedule subject, + int cur_week)
cur_week
public static java.util.List<Schedule> fliterSchedule(java.util.List<Schedule> data, + int curWeek, + boolean isShowNotCurWeek)
public interface WeekViewEnable<T>
T
data(java.util.List<Schedule> scheduleList)
isShow(boolean isShow)
isShowing()
itemCount()
itemCount(int count)
source(java.util.List<? extends ScheduleEnable> list)
T curWeek(int curWeek)
T itemCount(int count)
count
int itemCount()
T source(java.util.List<? extends ScheduleEnable> list)
list
T data(java.util.List<Schedule> scheduleList)
java.util.List<Schedule> dataSource()
T showView()
T updateView()
T isShow(boolean isShow)
isShow
boolean isShowing()
public abstract class AbsOperater +extends java.lang.Object
AbsOperater()
getDateLayout()
getFlagLayout()
init(android.content.Context context, + android.util.AttributeSet attrs, + TimetableView view)
setWeekendsVisiable(boolean isShow)
public AbsOperater()
public void init(android.content.Context context, + android.util.AttributeSet attrs, + TimetableView view)
public android.widget.LinearLayout getFlagLayout()
public android.widget.LinearLayout getDateLayout()
public void setWeekendsVisiable(boolean isShow)
public class SimpleOperater +extends AbsOperater
Created by Liu ZhuangFei on 2018/9/1.
SimpleOperater()
protected boolean
checkPosition(int day, + int start)
getPerWidth()
initAttr(android.util.AttributeSet attrs)
initPanel()
newSlideView(android.widget.LinearLayout slidelayout)
onPanelClicked(android.view.View view, + float y)
public SimpleOperater()
init
protected void initAttr(android.util.AttributeSet attrs)
getDateLayout
getFlagLayout
public void newSlideView(android.widget.LinearLayout slidelayout)
slidelayout
protected void onPanelClicked(android.view.View view, + float y)
protected boolean checkPosition(int day, + int start)
protected void initPanel()
showView
changeWeek
protected float getPerWidth()
updateDateView
updateSlideView
setWeekendsVisiable
TimetableView.showView()
TimetableView.changeWeek(int, boolean)
TimetableView.changeWeekOnly(int)
TimetableView.changeWeekForce(int)
TimetableView.updateView()
TimetableView.updateSlideView()
TimetableView.updateDateView()
public class ColorUtils +extends java.lang.Object
ColorUtils()
alphaColor(int color, + float alpha)
public ColorUtils()
public static int alphaColor(int color, + float alpha)
public class ScreenUtils +extends java.lang.Object
ScreenUtils()
dip2px(android.content.Context context, + float dpValue)
getHeightInDp(android.content.Context context)
getHeightInPx(android.content.Context context)
getWidthInDp(android.content.Context context)
getWidthInPx(android.content.Context context)
px2dip(android.content.Context context, + float pxValue)
public ScreenUtils()
public static final int getHeightInPx(android.content.Context context)
public static final int getWidthInPx(android.content.Context context)
public static final int getHeightInDp(android.content.Context context)
public static final int getWidthInDp(android.content.Context context)
public static int dip2px(android.content.Context context, + float dpValue)
dpValue
public static int px2dip(android.content.Context context, + float pxValue)
pxValue
public class PerWeekView +extends android.view.View
PerWeekView(android.content.Context context)
PerWeekView(android.content.Context context, + android.util.AttributeSet attrs)
drawPoint(android.graphics.Canvas canvas, + int x, + int y, + int radius, + android.graphics.Paint p)
int[][]
getArray()
getDataSource()
android.graphics.Paint
getGrayPaint()
getLightPaint()
onDraw(android.graphics.Canvas canvas)
onSizeChanged(int w, + int h, + int oldw, + int oldh)
PerWeekView
setData(java.util.List<Schedule> list, + int curWeek)
setGrayColor(int grayColor)
setLightColor(int lightColor)
setRadiusInDp(int radiusDp)
setRadiusInPx(int radiusPx)
setSource(java.util.List<? extends ScheduleEnable> list, + int curWeek)
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
public PerWeekView(android.content.Context context)
public PerWeekView(android.content.Context context, + android.util.AttributeSet attrs)
public android.graphics.Paint getLightPaint()
public android.graphics.Paint getGrayPaint()
public PerWeekView setLightColor(int lightColor)
lightColor
public PerWeekView setGrayColor(int grayColor)
grayColor
public java.util.List<Schedule> getDataSource()
public PerWeekView setSource(java.util.List<? extends ScheduleEnable> list, + int curWeek)
public PerWeekView setData(java.util.List<Schedule> list, + int curWeek)
public PerWeekView setRadiusInPx(int radiusPx)
radiusPx
public PerWeekView setRadiusInDp(int radiusDp)
radiusDp
protected void onSizeChanged(int w, + int h, + int oldw, + int oldh)
onSizeChanged
protected void onDraw(android.graphics.Canvas canvas)
onDraw
public int[][] getArray()
public void drawPoint(android.graphics.Canvas canvas, + int x, + int y, + int radius, + android.graphics.Paint p)
canvas
x
y
radius
p
public class WeekView +extends android.widget.LinearLayout +implements WeekViewEnable<WeekView>
WeekView(android.content.Context context)
WeekView(android.content.Context context, + android.util.AttributeSet attrs)
WeekView
callback(IWeekView.OnWeekItemClickedListener onWeekItemClickedListener)
callback(IWeekView.OnWeekLeftClickedListener onWeekLeftClickedListener)
hideLeftLayout()
onWeekItemClickedListener()
onWeekLeftClickedListener()
resetBackground()
public WeekView(android.content.Context context)
public WeekView(android.content.Context context, + android.util.AttributeSet attrs)
public IWeekView.OnWeekItemClickedListener onWeekItemClickedListener()
public WeekView callback(IWeekView.OnWeekItemClickedListener onWeekItemClickedListener)
onWeekItemClickedListener
public IWeekView.OnWeekLeftClickedListener onWeekLeftClickedListener()
public WeekView callback(IWeekView.OnWeekLeftClickedListener onWeekLeftClickedListener)
onWeekLeftClickedListener
public WeekView curWeek(int curWeek)
WeekViewEnable<WeekView>
public WeekView itemCount(int count)
itemCount
public int itemCount()
WeekViewEnable
public WeekView source(java.util.List<? extends ScheduleEnable> list)
source
public WeekView data(java.util.List<Schedule> scheduleList)
public WeekView showView()
public WeekView updateView()
updateView
public void resetBackground()
public WeekView hideLeftLayout()
public WeekView isShow(boolean isShow)
public boolean isShowing()
isShowing
概览 页面是此 API 文档的首页, 提供了所有程序包的列表及其概要。此页面也可能包含这些程序包的总体说明。
每个程序包都有一个页面, 其中包含它的类和接口的列表及其概要。此页面可以包含六个类别:
每个类, 接口, 嵌套类和嵌套接口都有各自的页面。其中每个页面都由三部分 (类/接口说明, 概要表, 以及详细的成员说明) 组成:
每个概要条目都包含该项目的详细说明的第一句。概要条目按字母顺序排列, 而详细说明则按其在源代码中出现的顺序排列。这样保持了程序员所建立的逻辑分组。
每个注释类型都有各自的页面, 其中包含以下部分:
每个枚举都有各自的页面, 其中包含以下部分:
对于所有程序包, 有一个类分层结构页面, 以及每个程序包的分层结构。每个分层结构页面都包含类的列表和接口的列表。从java.lang.Object开始, 按继承结构对类进行排列。接口不从java.lang.Object继承。
java.lang.Object
已过时的 API 页面列出了所有已过时的 API。一般由于进行了改进并且通常提供了替代的 API, 所以建议不要使用已过时的 API。在将来的实现过程中, 可能会删除已过时的 API。
索引 包含按字母顺序排列的所有类, 接口, 构造器, 方法和字段的列表。
这些链接使您可以转至下一个或上一个类, 接口, 程序包或相关页面。
这些链接用于显示和隐藏 HTML 框架。所有页面均具有有框架和无框架两种显示方式。
所有类链接显示所有类和接口 (除了非静态嵌套类型)。
每个可序列化或可外部化的类都有其序列化字段和方法的说明。此信息对重新实现者有用, 而对使用 API 的开发者则没有什么用处。尽管导航栏中没有链接, 但您可以通过下列方式获取此信息: 转至任何序列化类, 然后单击类说明的 "另请参阅" 部分中的 "序列化表格"。
常量字段值页面列出了静态最终字段及其值。
请使用框架功能查看此文档。如果看到此消息, 则表明您使用的是不支持框架的 Web 客户机。链接到非框架版本。
java.lang.String name
java.lang.String room
java.lang.String teacher
java.util.List<E> weekList
int start
int step
int day
int colorRandom
java.util.Map<K,V> extras