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

c# - Roxy file manager in MVC doesn't accept session path -

php - proc_open Too many open files in long running Symfony Console app -

c# - Show a huge number of data in DevExpress GridView -