Defining the Extensibility XML

The Extensibility Framework relies on metadata stored in an XML file to build its UIs and perform data bindings at runtime.

The XML file must be named according to the app type, either layout_phone.xml or layout_tablet.xml.

Extensibility XML files are stored in the res/raw folder, which you need to create. Right-click the folder, select New > Other and choose XML > XML file in the wizard. Name the file layout_phone.xml and copy these lines into it:
<?xml version="1.0" encoding="UTF-8"?>
<MAF xmlns="http://schemas.sap.com/maf/2012/cfg">

	<!-- Define a "tile" - it translates to UIViewController -->
	<Tile tileId="First Extensible Screen">

		<!-- This is our root view -->
		<P pid="isRoot" value="true" />
	</Tile>

</MAF>