The Android library is constantly growing. New widgets are built, and existing ones get deprecated. We’ll see how we can make XML layouts versioning more maintainable and more OO using the <include/> element. For that we’ll take as an example the ActionBarSherlock SearchView.
Occasionally it’s convenient to have an Android RelativeLayout that references another layout element that hasn’t been defined at that point in the XML file. E.g.: