Android can use include to include other defined la s in xml files. you can separate the la s used in multiple places and include the la s with include. The following is a simple example. Two xml files: main. xml file: [html] <span style = "font-size: 14px;"> <? Xml version = "1.0" encoding = "UTF-8"?> <LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" android: layout_width = "fill_parent" android: layout_height = "fill_parent" android: orientation = "vertical"> <include android: id = "@ + id/main1" layout = "@ layout/sublayout"/> <include android: id = "@ + id/main2" layout = "@ layout/sublayout"/> <Button android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: text = "S Tart Another Activity "/> </LinearLayout> </span> sublayout. xml file: [html] <span style =" font-size: 14px; "> <? Xml version = "1.0" encoding = "UTF-8"?> <LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" android: layout_width = "fill_parent" android: layout_height = "wrap_content" android: background = "#505050" android: orientation = "vertical"> <TextView android: layout_width = "fill_parent" android: layout_height = "wrap_content" android: text = "SubLayout"/> <Button android: id = "@ + id/mybutton" android: layout_width = "fill_parent" android: layout_height = "wrap_content" android: text = "A Button"/> </LinearLayout> </span>