AFAIK, you can use the same identifier in different actions, because when you
setContentView(R.layout.splash);
and inflate the layout, then Android itself is looking for this particular identifier in this particular layout, so there is no problem.
Note. This does not mean that you can put the same identifier for another element in the same layout.
ingsaurabh
source share