使用 Titanium/Appcelerator Alloy 的 Android 多窗口支持 [英] Android Multi window support using Titanium/ Appcelerator Alloy
问题描述
在钛中我如何添加多窗口支持,如下所述:https://developer.android.com/guide/topics/ui/multi-window.html
In titanium how do I add multi window support as described here: https://developer.android.com/guide/topics/ui/multi-window.html
进入多窗口模式意味着应用程序的高度可以改变.因此我需要对此做出反应,以便我可以适当地显示/隐藏/修改元素.
Going into multi-window mode means the height of the app can change. Therefore I need to react to this, so I can show/hide/modify elements as appropriate.
我认为我需要在调整应用程序大小时添加一个事件,但我似乎不知道如何执行此操作.
I presume that I need to add an event for when the app is resized, but I cannot seem to find out how to do this.
在文档中,我只找到了关于改变方向的信息:http://docs.appcelerator.com/platform/latest/#!/guide/Orientation
In the docs, I have only found information regarding changing orientation: http://docs.appcelerator.com/platform/latest/#!/guide/Orientation
推荐答案
目前 (SDK 6.0.2.GA) 不支持多窗口模式.但是已经有两个功能请求票:
Currently (SDK 6.0.2.GA) multi-window mode is not supported. But there are already two feature request tickets at:
您可以关注它何时实施.
you can follow to see when it is implemented.
这篇关于使用 Titanium/Appcelerator Alloy 的 Android 多窗口支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!