Android资源文件xml的编写

自定义主题样式
在values路径下的styles.xml的文件下可以定义主题

<style name="bgTheme" parent="@style/AppTheme">
        <item name="android:windowNoTitle">false</item>
        //该主题是否有头部action
        <item name="android:windowBackground">@mipmap/a</item>
    //设置该主题的背景图
    </style>

然后在AndroidManifast中定义

 android:theme="@style/bgTheme">

即可全局使用该主题,也可以不全局

猜你喜欢

转载自blog.csdn.net/qq_45541497/article/details/106930829