I\'m looking for ways to reduce what I would call \"id pollution\" in my apps. From what I can tell, R.id is global to the application, so in every Activity I
The other answers will work, but you could also make a save_button.xml in your layout folder, with as the root tag. Then reference that guy's id in those places that you need it. This means you only need to define one "save" button, and use it everywhere.