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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -