【问题标题】:Hiding Title Bar in Titanium classic android在 Titanium 经典 android 中隐藏标题栏
【发布时间】:2015-04-21 14:31:24
【问题描述】:

我已经尝试了 stackoverflow 上所有可能的替代方案,但没有奏效。如果有人有确切的答案,请告诉我。我是钛框架的新手。我的应用程序已完成,但我需要在上传之前删除钛经典的默认标题栏。

【问题讨论】:

标签: titanium-mobile titanium-android


【解决方案1】:

看起来有两种方法可以做到这一点。

var win = Ti.UI.createWindow({theme: "Theme.AppCompat.Fullscreen"});

此外,您似乎可以通过 TiApp.xml 文件执行此操作:

...other tiapp file stuff above...
<android xmlns:android="http://schemas.android.com/apk/res/android">
    <manifest>
        <application android:theme="@style/Theme.AppCompat.Fullscreen"/>
    </manifest>
</android>
...other tiapp file stuff below...

http://docs.appcelerator.com/titanium/3.0/#!/guide/Android_Themes

【讨论】:

  • +1 方法,但如果你想保留状态栏,我会使用:Theme.AppCompat.Translucent.NoTitleBar。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多