2013-10-23 35 views
4

我有UI問題。加速器/ Titanium Holo UI在模態下:true不起作用

更改默認的UI到全息與起了變化tiapp.xml:

<android xmlns:android="http://schemas.android.com/apk/res/android"> 
<tool-api-level>14</tool-api-level> 
<manifest> 
    <application android:theme="@android:style/Theme.Holo"> 
     <activity android:name=".ThemetestActivity" android:theme="@android:style/Theme.Holo"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN"/> 
       <category android:name="android.intent.category.LAUNCHER"/> 
      </intent-filter> 
     </activity> 
    </application> 
</manifest> 
</android> 

霍洛UI工作正常。但是,如果我用道具模型打開新窗口:新窗口用舊UI打開,而不是全部。但是,如果模態錯誤,它可以正常工作(但後退按鈕不起作用,我使用模態:因爲我需要後退按鈕才能工作)。

這是我的代碼:

var myButton = Titanium.UI.createButton({ 
    title: 'Test button', 
    width: 500, 
    height: 100, 
    top: 60, 
    font: { fontSize: 30 } 
}); 

table.addEventListener('click', function(e) { 
    var window = Ti.UI.createWindow({ 
     title:'Flight Details', 
     backgroundColor:'#fff', 
     backButtonTitle: 'Back', 
     modal: true 
    }); 

    window.add(myButton); 
    window.open({ animated: true }); 
}); 

爲什麼新的窗口是不是在霍洛UI?

回答

相關問題