android xml资源文件
2011-05-10 15:11
274 查看
1.strings
字符串string支持简单的文本样式(如粗体、斜体、下划线等)
下划线:<string name="hello"><u>Hello World, Test1!</u></string>
粗体: <string name="hello"><b>Hello World, Test1!</b></string>
斜体: <string name="hello"><i>Hello World, Test1!</i></string>
2.styles
styles 使用关键字parent支持继承关系
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="BaseText">
<item name="android:textSize">14sp</item>
<item name="android:textColor">#111</item>
</style>
<style name="SmallText" parent="BaseText">
<item name="android:textSize">8sp</item>
</style>
</resources>
字符串string支持简单的文本样式(如粗体、斜体、下划线等)
下划线:<string name="hello"><u>Hello World, Test1!</u></string>
粗体: <string name="hello"><b>Hello World, Test1!</b></string>
斜体: <string name="hello"><i>Hello World, Test1!</i></string>
2.styles
styles 使用关键字parent支持继承关系
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="BaseText">
<item name="android:textSize">14sp</item>
<item name="android:textColor">#111</item>
</style>
<style name="SmallText" parent="BaseText">
<item name="android:textSize">8sp</item>
</style>
</resources>
相关文章推荐
- Android资源文件中各种XML的作用与解释
- Android 常用颜色资源文件color.xml
- Android常见颜色代码的xml资源文件
- Android xml资源文件中@、@android:type、@*、?、@+含义和区别
- Android xml资源文件中@、@android:type、@*、?、@+含义和区别
- 新入的Android工程很多时候都会遇到这样的问题,R.mainactivity.xml报错,一看原来发现是R类访问不到我们的资源文件在这个时候怎么解决呢?
- Android中通过xml资源文件定义数组
- Android xml资源文件中@、@android:type、@*、?、@+含义和区别
- Android反编译(二)之反编译XML资源文件
- Android 在资源文件(res/strings.xml)定义一维数组,间接定义二维数组
- 【转】Android xml资源文件中@、@android:type、@*、?、@+含义和区别
- Android中通过xml资源文件定义数组
- Android xml资源文件中@、@android:type、@*、?、@+含义和区别
- ANDROID XML图像资源文件详细讲解(一)
- Android xml资源文件中@、@android:type、@*、?、@+含义和区别
- Android资源文件string.xml中\u2026的意思
- Android xml资源文件中@、@android:type、@*、?、@+含义和区别
- Android xml资源文件中@、@android:type、@*、?、@+含义和区别
- Android xml资源文件中@、@*、@+、@?、@android:type的区别
- Android xml资源文件中@、@an…