视频直播app源码,不同分类顶部背景色的设置
视频直播app源码,不同分类顶部背景色的设置
首先,在rest/values/styles.xml里添加自定义的主题:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/red_e73a3d</item>
<item name="colorPrimaryDark">@color/red_b00606</item>
<item name="colorAccent">@color/blue_021363</item>
</style>
然后在AndroidManifest.xml里设置自己的主题
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
以上就是 视频直播app源码,不同分类顶部背景色的设置,更多内容欢迎关注之后的文章