React Native:如何在 Android 上更改最近应用程序的背景标题颜色?
React Native: how to change recent apps background title color on Android?
我想使用 react-native.
更改最近应用视图中的背景标题颜色(当您在 Android 上按下概述方形按钮时)
您可以在下图中看到 Facebook 应用程序的背景颜色为蓝色,但我的 比特币 FOMO 计算器 应用程序的默认颜色为灰色。
谢谢
1.Createcolors.xml变成android/app/src/main/res/values/colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Change the color value for your need -->
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
</resources>
2.Modifystyles.xml里面android/app/src/main/res/values/styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
3.The 结果和有关 Android Style and Theme 的更多详细信息:
我想使用 react-native.
更改最近应用视图中的背景标题颜色(当您在 Android 上按下概述方形按钮时)您可以在下图中看到 Facebook 应用程序的背景颜色为蓝色,但我的 比特币 FOMO 计算器 应用程序的默认颜色为灰色。
谢谢
1.Createcolors.xml变成android/app/src/main/res/values/colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Change the color value for your need -->
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
</resources>
2.Modifystyles.xml里面android/app/src/main/res/values/styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
3.The 结果和有关 Android Style and Theme 的更多详细信息: