edittex和datepicker組合:https://gist.github.com/hippyk/0c19983de5a5391e6a8b448887d22a91
2018-01-04
我想知道ca.set(Calendar.DAY_OF_MONTH, 1);是什么意思
2017-12-28
if(now.getMonth()==date.getMonth()&&now.getYear()==date.getYear()){
isTheSameMonth=true;
}
是不是更好一些 !
還是很感謝大神的講解!
isTheSameMonth=true;
}
是不是更好一些 !
還是很感謝大神的講解!
2017-12-21
當(dāng)前月在render()里面取到,然后傳給adapter,在里面判斷是不是當(dāng)前月,這樣可行
2017-11-23
if (now.getMonth()!=date.getMonth()){
這個(gè)的邏輯是不對(duì)的,只能針對(duì)當(dāng)前月份
這個(gè)的邏輯是不對(duì)的,只能針對(duì)當(dāng)前月份
2017-11-23
講的很好,有兩個(gè)地方把我絆住了, 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前面有個(gè) 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前面有個(gè) cells.clear()
2017-11-21