android - 我无法同时应用“Theme.AppCompat.NoTitleBar”和“colorPrimaryDark”状态栏颜色属性
问题描述
我想在整个应用程序中隐藏操作栏,还想设置状态栏颜色?在 Appcelerator 钛中。
解决方案
我将自定义主题文件保存在里面
App->Platform->Android->res->values->mytheme.xml
我的 xml 文件如下所示,对我来说效果很好..
<resources>
<style name="Theme.MyTheme" parent="Theme.AppCompat.NoTitleBar.Fullscreen">
<item name="buttonStyle">@style/MyButton</item>
</style>
<style name="MyButton" parent="Widget.AppCompat.Button">
<item name="android:textAllCaps">false</item>
</style>
</resources>
并在 maifest 内的 tiapp.xml 文件中
<application android:theme="@style/Theme.MyTheme"/>
推荐阅读
- reactjs - 如何使用 runSaga 启动 redux saga watcher
- angular - Bootstrap 没有按预期的角度加载
- javascript - 如何在 discord.js 中测试表情符号是否为动画
- geoserver - QGIS 与 Geomesa 或 GeoServer 的集成
- html - 让最长的内容项设置整列的宽度
- java - 为什么我们不能将整数文字作为参数传递给以字节为形式参数的方法
- firebase - 将数据下载到 GCP 的 Firebase 实时数据库计费政策是什么?#AskFirebase
- c# - 如何在 Discord.Net 中创建角色
- python - Matplotlib ConnectionPatch 线被其他轴挡住了
- javascript - 如何在js中将变量替换为字符串