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)
Also you can define ids.xml in res/values. You can see an exact example in android's sample code.
ids.xml
res/values
samples/ApiDemos/src/com/example/android/apis/RadioGroup1.java samples/ApiDemp/res/values/ids.xml