Skip to content

Commit

Permalink
testFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
yannecer committed May 8, 2018
1 parent cd3253c commit c21f506
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
14 changes: 12 additions & 2 deletions app/src/main/java/necer/ncalendardemo/fragment/TestFragment2.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@

public class TestFragment2 extends Fragment {


MonthCalendar monthCalendar;
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

View inflate = inflater.inflate(R.layout.fragment_2, null);
MonthCalendar monthCalendar = (MonthCalendar) inflate.findViewById(R.id.monthcalendar);
monthCalendar = (MonthCalendar) inflate.findViewById(R.id.monthcalendar);

monthCalendar.setOnMonthCalendarChangedListener(new OnMonthCalendarChangedListener() {
@Override
Expand All @@ -42,4 +42,14 @@ public void onMonthCalendarChanged(LocalDate dateTime) {
return inflate;

}


@Override
public void onHiddenChanged(boolean hidden) {
super.onHiddenChanged(hidden);

if (!hidden) {
monthCalendar.toToday();
}
}
}
2 changes: 1 addition & 1 deletion ncalendar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
/*
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
version = "2.4.5" //版本号
version = "2.4.6" //版本号
*/

android {
Expand Down

0 comments on commit c21f506

Please sign in to comment.