livecode fullscreenmode exactfit 不适用于所有设备
livecode fullscreenmode exactfit do not work on all devices
我按照 livecode 教程中所说的使用了以下代码
on preOpenStack
set the fullscreenmode of me to "exactFit"
end preOpenStack
但是当我测试我的应用程序时,它并不适用于所有设备。
例如,它适用于 Galaxy Note 3,但适用于 Galaxy Tab S。我只能看到应用程序的一小部分
所以我把代码改成这样:
on preOpenStack
set the fullscreenmode of Stackname to "exactFit"
end preOpenStack
现在可以在 Galaxy Tab 上使用,但不能在 Galaxy Note 3 上使用
我使用了其他 fullscreenmode
选项,例如 letterbox
,但没有任何改变。
您可以尝试在打开堆栈之前设置堆栈的fullScreenMode
。创建另一个堆栈并为其提供以下脚本:
on openStack
send "initialiseStack" to me in 0 millisecs
pass openStack
end openStack
on initialiseStack
set the fullScreenMode of stack "Your Stack" to exactFit
go stack "Your Stack"
end initialiseStack
这使 LiveCode 有时间在打开堆栈之前正确启动。如果屏幕未正确绘制,有时它会提供修复。
我不知道有什么错误会阻止 fullScreenMode
在特定设备上正常工作,但您可能想在 livecode.com 上提交一个新错误。
终于找到问题的根源了
是设备的语言。
如果设备语言为 RTL,则应用程序 运行 不正确。
我按照 livecode 教程中所说的使用了以下代码
on preOpenStack
set the fullscreenmode of me to "exactFit"
end preOpenStack
但是当我测试我的应用程序时,它并不适用于所有设备。 例如,它适用于 Galaxy Note 3,但适用于 Galaxy Tab S。我只能看到应用程序的一小部分
所以我把代码改成这样:
on preOpenStack
set the fullscreenmode of Stackname to "exactFit"
end preOpenStack
现在可以在 Galaxy Tab 上使用,但不能在 Galaxy Note 3 上使用
我使用了其他 fullscreenmode
选项,例如 letterbox
,但没有任何改变。
您可以尝试在打开堆栈之前设置堆栈的fullScreenMode
。创建另一个堆栈并为其提供以下脚本:
on openStack
send "initialiseStack" to me in 0 millisecs
pass openStack
end openStack
on initialiseStack
set the fullScreenMode of stack "Your Stack" to exactFit
go stack "Your Stack"
end initialiseStack
这使 LiveCode 有时间在打开堆栈之前正确启动。如果屏幕未正确绘制,有时它会提供修复。
我不知道有什么错误会阻止 fullScreenMode
在特定设备上正常工作,但您可能想在 livecode.com 上提交一个新错误。
终于找到问题的根源了
是设备的语言。
如果设备语言为 RTL,则应用程序 运行 不正确。