认识android原生项目的values文件夹下几个xml文件

values文件夹是负责app字符串、颜色、主题、样式等渲染(这个词是我的理解)的目录。
**colors.xml:**负责所有控件等需要使用颜色的中心刻画文件,形如:

<resources>
	<color name="a">#ffffff</color>
</resources>

**strings.xml:**负责所有文本需要显示的文字集合,所有需要展示文本的地方都可以在这里进行定义,形如:

<resources>
	<string name="aa">中国</string>
</resources>

**styles.xml:**负责app所有活动或者碎片部分的主题样式,有无标题栏等都是在这里进行设置,形如:

<resources>
	<style name="FullscreenTheme " parent="AppTheme">
		<item name="windowNoTitle">true</item>
	</style>
</resources>

可能大家会遇到这样的问题,在打开布局文件a.xml时,Design样式下看不到具体的布局样式,这个时候需要在style.xml的FullscreenTheme的parent里加一个Base,如

parent="Base.Theme.AppCompat.Light.DarkAcitonBar"

对于一些选择器的样式xml,一般习惯性写在drawable文件夹下,

<selector xmlns:android="">
	<item android:state_focused="true">
		<shape>
				<corners android:radius="9.0dip" />
                 <solid android:color="#473C8B" />
		</shape>
	</item>
	...
</selector>

layer-list:是层列表,它的作用是用来创建 LayerDrawable 的
https://blog.csdn.net/weixin_40797204/article/details/78832640
认识android原生项目的values文件夹下几个xml文件
Vector Drawable相对于普通的Drawable来说,有比较多的好处,自动适配,图片体积小,实现动画代码少,
https://www.cnblogs.com/duanweishi/p/7222160.html

<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="200dp"
        android:height="200dp"
        android:viewportHeight="500"
        android:viewportWidth="500">

    <path
        android:name="square"
        android:fillColor="#000000"
        android:pathData="M100,100 L400,100 L400,400 L100,400 z"/>

</vector>

还有很多xml文件都跟android动画相关,这一部分的标签待续,如,
下的属性gradient
https://blog.csdn.net/a136447572/article/details/77942563