如何删除rhomobile生产构建中的工具栏?

时间:2015-07-06 07:04:25

标签: ruby-on-rails rhomobile rhodes

我正在尝试完全删除rhomobile 4.0.0中的工具栏,但@@toolbar = nil属性在rhomobile 4.0.0生成版本中不起作用。

1 个答案:

答案 0 :(得分:0)

使用RhoMobile v5.1.1(此时是最新版本)或使用RhoMobile Suite v4.0.0构建一个新项目(即将近两年,但是原始问题中包含的项目),导航栏会消失您取消注释项目@@toolbar = nil文件夹中application.rb的{​​{1}}行:

/app/

这是原始应用程序,由RhoMobile(带导航栏)在Android设备上运行:

This is the original application, as scafolded by RhoMobile (with the navigation bar)

此处相同的应用程序取消注释require 'rho/rhoapplication' class AppApplication < Rho::RhoApplication def initialize # Tab items are loaded left->right, @tabs[0] is leftmost tab in the tab- bar # Super must be called *after* settings @tabs! @tabs = nil #To remove default toolbar uncomment next line: @@toolbar = nil super # Uncomment to set sync notification callback to /app/Settings/sync_notify. # Rho::RhoConnectClient.setObjectNotification("/app/Settings/sync_notify") Rho::RhoConnectClient.setNotification('*', "/app/Settings/sync_notify", '') end end 行: same application uncommenting the <code>@@toolbar = nil</code> line