问题描述
我将我的钛sdk更新为3.5.0ga,但在Android上的每个窗口上都会出现默认动作栏. 有人可以告诉我如何永久禁用这个默认动作栏吗? 提前谢谢.
推荐答案
定义自定义主题的设置,例如,在/platform/android/res/values/customtheme.xml上的主题,如
< ?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.NoActionBar" parent="@style/Theme.AppCompat"> <item name="windowActionBar">false</item> <item name="android:windowNoTitle">true</item> </style> </resources>然后,在tiapp.xml上激活此主题:
<android xmlns:android="http://schemas.android.com/apk/res/android"> <manifest> <application android:theme="@style/Theme.NoActionBar"/> <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/> </manifest> </android>
更多: link
问题描述
I updated my Titanium sdk to 3.5.0GA, but there exits a default action bar on every window on Android. Can anyone please tell me how to permanently disable this default action bar? Thanks in advance.
推荐答案
Define the settings for your custom theme, for example, your theme at /platform/android/res/values/customtheme.xml like
< ?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.NoActionBar" parent="@style/Theme.AppCompat"> <item name="windowActionBar">false</item> <item name="android:windowNoTitle">true</item> </style> </resources>
Then, activate this theme on your tiapp.xml:
<android xmlns:android="http://schemas.android.com/apk/res/android"> <manifest> <application android:theme="@style/Theme.NoActionBar"/> <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/> </manifest> </android>
for more see : Link