Appcelerator - barImage隐藏标题文本
当我在 Appcelerator 中创建新窗口时,我需要更改背景图像。这是通过设置“barImage”来完成的。窗口本身是导航组的子级,并且有自己的子级。当我使用“barImage”参数时,它会在窗口初始加载时隐藏导航栏标题文本。如果我导航到其子窗口然后返回,标题文本将显示在导航栏中。
var sectionWindow = Titanium.UI.createWindow({
backgroundColor:'#fff',
fullscreen:false,
title:’My Sub Page',
modal:true,
barImage:'images/nav_bar.png'
});
如何使标题文本一致显示?
When I create a new window in Appcelerator I need to change the background image. This is done by setting “barImage”. The window itself is a child of a navigation group and has its own children. When I use the “barImage” parameter it hides the nav bar title text on the initial load of the window. If I navigate to its child window and then back the title text is displayed in the nav bar.
var sectionWindow = Titanium.UI.createWindow({
backgroundColor:'#fff',
fullscreen:false,
title:’My Sub Page',
modal:true,
barImage:'images/nav_bar.png'
});
How can I get the title text to consistently display?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信 1.7.2 版本中的 barImage 存在已知问题,请检查已解决该问题的 1.8x CI 版本
I believe there are known issues with the barImage in the 1.7.2 release, please check the 1.8x CI builds where the issue has been addressed