We all know that when generating an id for Android using
@+id/foo
Android creates for us an entry in R.java like:
public static final class id {
public static final int foo=0x7f060005;
}
What happens if there is a name collision in different xml files (let's say, inside two layouts)? The @+id mechanism ensures us to overwrite the id name if another one still exist, but which one is generated in R.java for us?