Skip to content

Commit

Permalink
Merge pull request #7 from Mystery00/master
Browse files Browse the repository at this point in the history
修复#6,并添加新功能
  • Loading branch information
zfman authored Jul 20, 2018
2 parents 5c4869c + 728247e commit 403a88f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ public int[][] getArray(){
Schedule schedule=getDataSource().get(i);
start=schedule.getStart();
end=schedule.getStart()+schedule.getStep()-1;
if (end>10) end=10;
for(int m=start;m<=end;m++){
arr[m-1][schedule.getDay()-1]=1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,14 @@ public void resetBackground(){
layouts.get(curWeek-1).setBackgroundDrawable(getContext().getResources().getDrawable(R.drawable.weekview_thisweek));
}

/**
* 隐藏左侧设置当前周的控件
*/
public WeekView hideLeftLayout(){
leftlayout.setVisibility(View.GONE);
return this;
}

/**
* 设置控件的可见性
* @param isShow true:显示,false:隐藏
Expand Down

0 comments on commit 403a88f

Please sign in to comment.