Disable the default actionbar on titanium sdk 3.5.0GA

百般思念 提交于 2019-12-11 19:33:11

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/28877220/disable-the-default-actionbar-on-titanium-sdk-3-5-0ga

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!