I\'m adding TextViews programmatically in a for-loop and add them to an ArrayList.
How do I use TextView.setId(int id)? What Integer ID do I come up wit
TextView.setId(int id)
You can set ID's you'll use later in R.id class using an xml resource file, and let Android SDK give them unique values during compile time.
R.id
res/values/ids.xml
To use it in the code:
myEditTextView.setId(R.id.my_edit_text_1);