android - Set Spinner id bt Java Code -


I know that my question is not good enough, but I really can not answer. My question is how

You can add id file to your resorces in the value directory.

For example:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Resources & gt; & Lt; Item type = "id" name = "my_id" /> & Lt; / Resources & gt;   

You can then set this user spinner to id :

  yourspinner.setId (R.id.my_id );    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -