开发者

Spinner help, Eclipses throwing errors!

开发者 https://www.devze.com 2023-02-13 08:29 出处:网络
I\'m having trouble populating my Spinner, so I\'m using the tutorial on Google website, http://developer.android.com/resourc...o-spinner.html

I'm having trouble populating my Spinner, so I'm using the tutorial on Google website,

http://developer.android.com/resourc...o-spinner.html

When I get to part 4, and I put the code in the the java folder, a bunch of red X开发者_StackOverflow中文版's pop up, giving me errors.

My questions is do I delete everything in the oncreate () .java file and insert the code from Googles site? When I do it give me errors, this is what happens,

http://imgf.tw/206693399.png

I'm know my coding is wrong, can anybody point me in the right direction?


Do you have all the imports right? Try pressing (I think) ctrl-shift-o to lead missing imports for Spinner and ArrayAdapter.

0

精彩评论

暂无评论...
验证码 换一张
取 消