本文主要是介绍Android Studio学习10——资源res的使用,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
一、String,StringArray的使用
一次修改,多出生效
String |



StringArray |


二、color的使用
颜色代码对应表
和上面的相似用法 |
三、Dimen(尺寸)的使用
用的少,一般直接写尺寸
四、如何写一个drawable作为背景

五、如何写一个可以改变的drawable(按钮按下后颜色加深)
六、Style和Theme的用法
Style《 Theme
这篇关于Android Studio学习10——资源res的使用的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!