java - Android - define groups in R.id -


is there possibility group r.id?

android:id="@+id/button1"  r.id.button1 

i want this:

android:id="@+id/main/button1"  r.id.main.button1 

but not work.

the way know group id's set tags same. reference id's same tag.

button mybutton = (button)findviewbyid(r.id.button1); button mysecondbutton = (button)findviewbyid(r.id.button2);  mybutton.settag("tag1"); mysecondbutton.settag("tag1"); 

this way can still programatically reference group.

in r.java file, id is group, , there no way superclass else.


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

How to mention the localhost in android -

php - Calling a template part from a post -