【问题标题】:Set iOS style accessoryType in Android table row in NativeScript在 NativeScript 中的 Android 表格行中设置 iOS 样式的附件类型
【发布时间】:2019-11-28 00:53:29
【问题描述】:

我在 NativeScript 中有一些代码可以在点击该行时在列表视图中设置 iOS 附件类型,但我不知道如何在 Android 部分执行此操作。

我工作的代码是:

if (args.ios) {
    args.ios.accessoryType = 3;
} else if (args.android) {
    // Set the Android indicator here.
}

我不是 Android 开发人员,所以我不知道从哪里开始。

任何帮助表示赞赏。

【问题讨论】:

    标签: angular typescript nativescript


    【解决方案1】:

    Android 没有这种开箱即用的功能。如果您更喜欢跨平台解决方案,那么您应该在设计模板时在角落放置一个类似的图标。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-25
      • 1970-01-01
      • 1970-01-01
      • 2017-06-20
      • 2020-11-30
      相关资源
      最近更新 更多