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