edittex和datepicker组合:https://gist.github.com/hippyk/0c19983de5a5391e6a8b448887d22a91
2018-01-04
if(now.getMonth()==date.getMonth()&&now.getYear()==date.getYear()){
isTheSameMonth=true;
}
是不是更好一些 !
还是很感谢大神的讲解!
isTheSameMonth=true;
}
是不是更好一些 !
还是很感谢大神的讲解!
2017-12-21
if (now.getMonth()!=date.getMonth()){
这个的逻辑是不对的,只能针对当前月份
这个的逻辑是不对的,只能针对当前月份
2017-11-23
讲的很好,有两个地方把我绊住了, View view = LayoutInflater.from(context).inflate(R.layout.calendar_layout, this, false);//插入布局
addView(view); btn1 = findViewById(R.id.calendar_btn_1);btn2 = findViewById(R.id.calendar_btn_2) gridView = findViewById(R.id.calendar_gridView); adapter前面有个 cells.clear()
addView(view); btn1 = findViewById(R.id.calendar_btn_1);btn2 = findViewById(R.id.calendar_btn_2) gridView = findViewById(R.id.calendar_gridView); adapter前面有个 cells.clear()
2017-11-21