Hi, Friends
I am trying to add rows or entries in spinner at run time. How it is
possible?
Sinner takes adapter to fill its entries and it uses
createFromResource function which takes the id of xml entries in
R.java file but i want to show the data in it which i have retrieved
from xml file


ArrayAdapter<CharSequence> adapter =
ArrayAdapter.createFromResource(this, R.array.colors,
                        android.R.layout.simple_spinner_item);
here it is taking id from array.xml file which is already there in
values folder but if i want to add rows from data which i get from web
service so for that i can't make entry in values folder and not also
in R.java file. So i want to know can i add rows in spinner at run
time while i am not having entry for that in R.java file.

i found one way for adding one way adding rows in list at run time. As
you havw used in Notepadv3 program using notes_row.xml file. Is there
any similar way for that pleaes let me know

 
Thanks
 
Rutu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to