gpt4 book ai didi

android - android中的组表是什么?

转载 作者:行者123 更新时间:2023-11-30 04:25:24 26 4
gpt4 key购买 nike

我正在使用 Titanium 编写一个移动项目。我有一个关于 table 的问题。我想分组显示表格,所以我使用了:

style:Ti.UI.iPhone.TableViewStyle.GROUPED

在 Android 中,我肯定不能在 Android 中运行代码,对吗?我需要一个条件来检查平台是 Android 还是 iPhone。请帮助我了解这些表格。安卓上去能换成什么。

最佳答案

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

它清楚地说明了它支持的操作系统。在这种情况下,只有 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 .

the shortname of the operating system. for example, on an iPhone, will return iphone, iPad will return ipad, Android will return android and Mobile Web will return mobileweb

关于android - android中的组表是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8632971/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com