如何改变手机底色的反应本土化。链接到图像。

发布于 2020-12-16 15:03:50
导航到该目录:
your_project/android/app/src/main/res/values。
会有styles.xml文件,打开它,就会出现这样的情况:
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:textColor">#000</item>
<item name="android:navigationBarColor">#000</item> // Add this line and change the color
</style>然后转到your_project/android/build.gradle并将minSdkVersion转换为21或更高版本。
buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 21 // or higher
compileSdkVersion = 29
targetSdkVersion = 29
}
}如果您正在使用世博,请尝试将其添加到app.json文件中:
{
"androidNavigationBar": {
"visible": true,
"barStyle": "light-content" or "dark-content",
"backgroundColor": color_here
}
}https://stackoverflow.com/questions/65325141
复制相似问题