有風(fēng)有酒有自由
2016-12-07 17:30:19
TextView textview=new TextView(getContext());//代碼The method getContext() is undefined for the type PieFragment//錯(cuò)誤
5 回答


慕粉1241305728
TA貢獻(xiàn)1條經(jīng)驗(yàn) 獲得超0個(gè)贊
我用的是Eclipse,為什么改寫成getActivity(),雖然不報(bào)錯(cuò),但是模擬器上運(yùn)行不了,一運(yùn)行就是系統(tǒng)已經(jīng)結(jié)束
- 5 回答
- 0 關(guān)注
- 3617 瀏覽
添加回答
舉報(bào)
0/150
提交
取消