android - Spinner and HTML select -


i have spinner displaying categories. ((string)categoryspinner.getselecteditem())) gives category name.

the spinner initialized given below:

list<string> list = new arraylist<string>();  (int = 0; < category.length; i++) {      list.add(category[i].getname()); }  arrayadapter<string> dataadapter = new arrayadapter<string>(this,             android.r.layout.simple_spinner_item, list); dataadapter.setdropdownviewresource(     android.r.layout.simple_spinner_dropdown_item ); shoppingitemcategoryspnr.setadapter(dataadapter); 

is there idea make spinner html select-tag can display category name , category id?


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -