0
我想隐藏特定窗口的操作栏。我跟着这个:http://www.appcelerator.com/blog/2014/08/hiding-the-android-actionbar/过去曾经为我工作。钛 - 隐藏特定窗口的Android操作栏
我所做的是创建一个自定义主题是这样的:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.NoActionBar" parent="@style/Theme.AppCompat">
<item name="android:windowNoTitle">true</item>
</style>
<style name="Theme.YesActionBar" parent="@style/Theme.AppCompat">
<item name="android:windowNoTitle">false</item>
</style>
</resources>
我设置在我tiapp.xml
如下:
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />
</manifest>
</android>
而且我已经设置在我的窗口中输入以下tss
:
"Window[platform=android]" : {
theme: 'Theme.NoActionBar'
}
但仍然操作栏显示。如果我在窗口打开事件中将其隐藏起来,而不是削减背景图像 - 所以我宁愿使用主题。
如何在sdk 5.2.0上隐藏带主题的动作栏?