Android 4.4状态栏与ActionBar同色

标签 android xml

我有一个名为“values-v19”的文件夹,其中包含一个“styles.xml”文件。该文件包含:

<item name="android:windowTranslucentNavigation">true</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:fitsSystemWindows">true</item>

应用看起来像:

enter image description here

如何让状态栏和ActionBar颜色一样?

最佳答案

查看 SystemBarTint图书馆。它完全可以满足您的需求。

关于Android 4.4状态栏与ActionBar同色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20906727/

相关文章:

Android 检查设备上的 GPS 可用性

android - 如何使用 SQLiteStatement 向 Sqlite 插入空值

ios - iOS 中的 itunes JSON 请求返回一个 XML 对象

android - 如何在已经包含 ScrollView 的 Android 应用程序上添加更多按钮?

android - 透明导航软按键

android - 如何删除谷歌文档查看器中的弹出图标?

java - 如何将 bundle 数据从一个 fragment 获取到另一个 fragment ?

xml - 在 Node 中为 xml 模板化 ejs

android - 在 android 布局中添加 GIF

xml - 使用 XPath 查询同名元素