acTextView = (AutoCompleteTextView) findViewById(R.id.autoCompleteTextView1); ArrayAdapter adapter = new ArrayAdapter (this,android.R.layout.simple_selectable_list_item,res); acTextView.setAdapter(adapter); 我這個(gè)代碼有錯(cuò)嗎?為啥總報(bào)錯(cuò)?
舉報(bào)
0/150
提交
取消
2014-09-26
我也是同樣的問(wèn)題,老師能幫幫我嗎?
2014-07-06
acTextView = findViewById(R.id.autoCompleteTextView1); id無(wú)法識(shí)別是什么錯(cuò)誤
2014-06-11
謝謝!
2014-06-11
216124569
2014-06-11
有,在setAdapter下又紅色下劃線(xiàn),eclipse提示:The method setAdapter(ArrayAdapter<String>) is undefined for the type AutoCompleteTextView
2014-06-11
The method setAdapter(ArrayAdapter<String>) is undefined for the type AutoCompleteTextView。好像沒(méi)少,請(qǐng)問(wèn)上邊這個(gè)信息又是啥意思?
2014-06-11
你寫(xiě)完代碼后,有沒(méi)有帶紅色下劃線(xiàn)的地方?
2014-06-11
Syntax error, insert ";" 這是你在哪里少個(gè)分號(hào)啊
2014-06-11
Multiple markers at this line - Syntax error, insert ";" to complete Statement - The method setAdapter(ArrayAdapter<String>) is undefined for the type AutoCompleteTextView - Syntax error, insert "new ClassType ( )" to complete Expression
2014-06-11
你把錯(cuò)誤信息發(fā)出來(lái)看下,看下是不是代碼的原因