當(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
關(guān)于日了set get 這幾個(gè)地方 可否舉例子說(shuō)明一下 聽得時(shí)候沒(méi)有理解
2017-11-01
calendar.get(Calendar.DAY_OF_WEEK)獲得是周幾,周一的話返回的是2,周日返回才是1,減一后等于0,這個(gè)時(shí)候才表示開頭沒(méi)有cell給上個(gè)月
2017-08-11