Use MySpinner.setId(int) if MySpinner is the reference to the spinner.
Set id for spinner programmatically
-
12-06-2023 - |
Question
It feels like I am missing something but how do you set the resource ID when making a spinner programmatically? (for example R.id.myspinner)
Thanx JP.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow