Questions tagged [r.id]
8 questions
5
votes
4 answers
Do Android's R.id need to be unique?
Do Android's R.id need to be unique (as I've kept them so far)?
Or is it OK to reuse an R.id across different views?

fadedbee
- 42,671
- 44
- 178
- 308
1
vote
3 answers
Get a button array programmatically without hard-coding the id's and getting it by findViewById()
I have an XML layout with an EditText on top and then a lot of buttons and a bunch of other views after the keyboard. The root element is ConstraintLayout.