使用 XML 作为 GUI的定义格式
1. 文本及文本样式
<?xml version="1.0" encoding="utf-8"?>
        <resources>
            <string name="app_name">Demo</string>
            <string name="action_settings">Settings</string>
            <string name="hello_world">Hello world!</string>
            <!-- 
                <i> 代表斜体
                <b> 代表加粗
                <u> 代表下划线
                n  代表换行
             -->
            <string name="test1"> <i> 身是菩提树, <b>心是明镜台</b>. 时时勤拂拭, 务使惹尘埃 </i> </string>
            <string name="test2"> <u> 菩提本无树, 明镜亦非台. 本来无一物, 何处惹尘埃 </u> </string>
        </resources>
2. 颜色常量配置
<?xml version="1.0" encoding="utf-8"?>
        <resources>
            <color name="red"> #FF0000 </color>
            <color name="black"> #000000 </color>
        </resources>
3. 数组常量配置
        <?xml version="1.0" encoding="utf-8"?>
        <resources>
            <string-array name="province" >
                <item>河北</item>
                <item>河南</item>
                <item>山东</item>
                <item>山西</item>
                <item>广东</item>
                <item>广西</item>
            </string-array>    
        </resources>