I was searching for difference in @id/ and @+id/ in our XML layouts. I got another question in my mind, Should we use different name for every component declared in layout for our application ?
I know that we can not declare two components with same name in a layout, But if i talk about entire application. I use same name in other layouts.
Is this the correct way of coding ?
This answer quote that when we declare @+id/ there is new entry in R.java
file, If i add same name component in other layout, Will it create other entry in R.java file ???
I am confused in this, and what is the right way of declaring names in XML layout.
Any help would be appreciated.