Layout
To create an alias to an existing layout, use the <include> element, wrapped in a <merge>. For example:
If you save this file as main.xml, it is compiled into a resource you can reference as R.layout.main, but is actually an alias for the R.layout.main_ltr resource.
Strings and other simple values
To create an alias to an existing string, simply use the resource ID of the desired string as the value for the new string. For example:
The R.string.hi resource is now an alias for the R.string.hello.
Other simple values work the same way. For example, a color: