課程
/移動(dòng)開發(fā)
/Android
/Android-打造萬能適配器
老師,我遇到一個(gè)問題就是如果把checkbox申明為全局變量,放到最外面,然后去掉final為啥checkbox選中后,ischecked值卻是false?
2016-03-24
源自:Android-打造萬能適配器 6-2
正在回答
在Bean設(shè)置CheckBox的值
public boolean isChecked(){ ? return isChecked;}public void setChecked(boolean isChecked){ ? this.isChecked = isChecked;}
爵少Poseidon 提問者
舉報(bào)
本課程通過對傳統(tǒng)的ListView數(shù)據(jù)綁定寫法,打造萬能適配器
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-04-01
在Bean設(shè)置CheckBox的值
public boolean isChecked()
{
? return isChecked;
}
public void setChecked(boolean isChecked)
{
? this.isChecked = isChecked;
}