1. Layout Resources
A layout resource defines the architecture for the UI in an Activity or a component of a UI.
2. Syntax
<?xml version="1.0"encoding="Utf-8"? ><viewgroup//A container for other View elementsXmlns:android="http://schemas.android.com/apk/res/android"Android:id="@[+][package:]id/resource_name"Android:layout_height=["Dimension"|"fill_parent"|"wrap_content"] Android:layout_width=["Dimension"|"fill_parent"|"wrap_content"] [ViewGroup-specific Attributes] >
<view//An individual UI component, generally referred to as a "widget".Android:id="@[+][package:]id/resource_name"Android:layout_height=["Dimension"|"fill_parent"|"wrap_content"] Android:layout_width=["Dimension"|"fill_parent"|"wrap_content"] [View-specific Attributes] > <requestFocus/>//Any element representing a View object can include this empty element, which gives it parent initial focus on the SCR Een. You can has only one of these elements per file.</View>
<viewgroup > <view/> </ViewGroup>
<include layout="@layout/layout_resource"/>
</ViewGroup>
3.APP Resources-resource types/layout Resource