Skip to content

Commit

Permalink
Added method to hide or show expand icon
Browse files Browse the repository at this point in the history
  • Loading branch information
shrikanth7698 committed Jul 19, 2019
1 parent 88b9723 commit f42080b
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 34 deletions.
Binary file added .idea/caches/gradle_models.ser
Binary file not shown.
29 changes: 0 additions & 29 deletions .idea/codeStyles/Project.xml

This file was deleted.

6 changes: 6 additions & 0 deletions .idea/copyright/Shrikanth_Ravi.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions ISSUE_TEMPLATE.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ protected void onCreate(Bundle savedInstanceState) {
getWindow().setStatusBarColor(getResources().getColor(R.color.google_red));

CollapsibleCalendar collapsibleCalendar = findViewById(R.id.collapsibleCalendarView);
//To hide or show expand icon
collapsibleCalendar.setExpandIconVisible(true);
Calendar today=new GregorianCalendar();
collapsibleCalendar.addEventTag(today.get(Calendar.YEAR),today.get(Calendar.MONTH),today.get(Calendar.DAY_OF_MONTH));
today.add(Calendar.DATE,1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ public void addEventTag(int numYear, int numMonth, int numDay) {
public void addEventTag(int numYear, int numMonth, int numDay,int color) {
mAdapter.addEvent(new Event(numYear, numMonth, numDay,color));


reload();
}

Expand Down Expand Up @@ -600,6 +601,14 @@ public interface CalendarListener {
void onWeekChange(int position);
}

public void setExpandIconVisible(boolean visible){
if(visible){
expandIconView.setVisibility(VISIBLE);
}else {
expandIconView.setVisibility(GONE);
}
}



}
Expand Down

0 comments on commit f42080b

Please sign in to comment.