【问题标题】:How to add image inside an Textview in Nativescript?如何在 Nativescript 的 Textview 中添加图像?
【发布时间】:2018-10-07 11:43:35
【问题描述】:

我一直在尝试构建一个可以保存图像的文本视图。因为它使用 NStextAttachment 和 NSattributedString 在 iOS 中工作。也许我以某种方式将图像注入 FormattedString 。有人有什么主意吗?请帮忙

【问题讨论】:

    标签: nativescript


    【解决方案1】:

    我认为目前不可能。您可以尝试一些方法,例如水平方向的 StackLayout。所以你需要为相同的背景颜色和大小等处理 css...

    <StackLayout orientation=“horizontal”>
    <TextField .... />
    <Image .... />
    </StackLayout>
    

    【讨论】:

      猜你喜欢
      • 2013-02-27
      • 1970-01-01
      • 1970-01-01
      • 2014-12-02
      • 2015-11-28
      • 1970-01-01
      • 1970-01-01
      • 2016-11-14
      • 1970-01-01
      相关资源
      最近更新 更多