【问题标题】:Back button of android device not working in rhomobileandroid设备的后退按钮在rhomobile中不起作用
【发布时间】:2012-07-28 03:31:47
【问题描述】:

我是 rhomobile 的新手。我为 3 个屏幕创建了示例应用程序。我正在尝试使用设备的后退按钮来重定向以前的屏幕。但是后退按钮不起作用。它仍然在相同的屏幕上。此外,当我们在第一个屏幕上我想关闭设备后退按钮上的应用程序时。 我们可以通过编程方式做到这一点吗?

【问题讨论】:

标签: android rhomobile rhodes


【解决方案1】:

回复很晚,但可能对看到这篇文章的人有用。

在 android 中(这似乎不适用于 Windows Mobile)你会使用

 render :back => url

其中 url 是您希望返回的网址

相关简要文档的链接:

http://docs.rhomobile.com/rhodes/ui#redefine-back-action

【讨论】:

    【解决方案2】:

    你能提供代码吗? 这是使用元标记的后退按钮示例

    <META HTTP-Equiv="BackButton" Content="Visibility:Visible">
    <META HTTP-Equiv="BackButton" Content="Left:50">
    <META HTTP-Equiv="BackButton" Content="Top:50">
    <META HTTP-Equiv="BackButton" Content="Width:30">
    <META HTTP-Equiv="BackButton" Content="Height:30">
    

    Back Button

    退出按钮:

    <META HTTP-Equiv="QuitButton" Content="Visibility:Visible">
    <META HTTP-Equiv="QuitButton" Content="Left:50">
    <META HTTP-Equiv="QuitButton" Content="Top:50">
    

    这里是退出按钮的链接:

    Quit Button

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-12-27
      • 1970-01-01
      • 2019-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多