简体   繁体   English

Android彩色主题窗口背景

[英]Android color theme windowBackground

I am building an Android application and adding multiple themes to it.我正在构建一个 Android 应用程序并向其添加多个主题。 I have question I am using https://www.materialpalette.com/ to generate the themes colors.我有疑问我正在使用https://www.materialpalette.com/生成主题 colors。 What should I set the windows Background windowBackground colors, should I set it to white for all themes or use the Light Primary Color from each theme colors.我应该设置什么 windows 背景窗口背景colors ,我应该将所有主题设置为白色还是使用每个主题 colors 中的 Light Primary Color。

在此处输入图像描述

<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Holo.NoActionBar">
    <item name="android:windowBackground">@android:color/black</item>
</style>

</resources>

Setting Android Theme background color 设置 Android 主题背景颜色

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android Dark主题未设置windowBackground - Android dark theme doesn't set windowBackground windowbackground 不适用于深色和浅色主题 - windowbackground not work in dark and light theme Android windowBackground 属性被忽略 - Android windowBackground attribute being ignored 如何在android中获取当前主题的文本颜色? - How to get text color for current theme in android? 使用自定义的Android主题全息颜色 - use a custom android theme holo color Android Studio选项卡查看灰色主题颜色 - Android Studio Tab View gray theme color 如何在Android的java代码中获取主题的窗口背景和文本颜色? - How to get window background and text color for theme in java code in Android? 如何使用 android:windowBackground 方法实现 Application.ActivityLifecycleCallbacks 以为 Android 应用程序制作启动画面 - How to implement Application.ActivityLifecycleCallbacks to make a splash screen for an Android app using the android:windowBackground method 在Android Studio中,有没有一种方法可以将样式主题颜色(如colorPrimary)用于@ color /“ whateverColorYouWant”的项目背景 - Is there a way, in Android Studio to use a Style Theme Color like colorPrimary for my Item Background intsted of @color/“whateverColorYouWant” 为什么在 Android 的 Theme.MaterialComponents.Light.DarkActionBar 中没有应用按钮的全局颜色样式? - Why global color style for button is not being applied in Theme.MaterialComponents.Light.DarkActionBar in Android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM