什么是android中的组表?

时间:2011-12-26 04:47:21

标签: android titanium-mobile

我正在使用Titanium编写移动项目。我对这张桌子有疑问。我想在组中显示表格,所以我使用了:

style:Ti.UI.iPhone.TableViewStyle.GROUPED

在Android中,我无法在Android中运行代码吗?我需要找个条件检查平台是Android还是iPhone。请帮我理解这些表格。什么可以替代它到Android。

1 个答案:

答案 0 :(得分:1)

每次要使用函数/方法/变量时,请仔细查看文档。

它清楚地说明了它支持的操作系统。在这种情况下,只有iOS:

http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.iPhone.TableViewStyle-object

您可以使用以下内容定位操作系统:Ti.Platform.Osname

另见:http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Platform-module

  

操作系统的短名称。例如,在iPhone上,将会   返回 iphone ,iPad将返回 ipad ,Android将返回 android ,   移动网络将返回 mobileweb