0
点赞
收藏
分享

微信扫一扫

深度解析:速卖通、亚马逊、OZON卖家如何通过自养号策略提升关键词效果?

Spinach菠菜 2024-06-21 阅读 3
harmonyos

1.Text文本显示组件

2.编写代码

在上一篇博客的基础上继续

 ①新建ImagePage.ets

② 设置文本串

 {
      "name": "width_label",
      "value": "Image Width:"
    }
 {
      "name": "width_label",
      "value": "Image Width:"
    }
{
      "name": "width_label",
      "value": "图片宽度:"
    }

③ImagePage 代码

import font from '@ohos.font'
@Entry
@Component
struct Index {
  @State message: string = 'Hello World'

  build() {
    Row() {
      Column() {

        Image($r('app.media.app_icon'))
          .width(250)
          .interpolation(ImageInterpolation.High)
        Text($r('app.string.width_label'))
          .fontSize(20)
          .fontWeight(FontWeight.Bold)
      }

      .width('100%')
    }
    .height('100%')
  }
}

④效果如下

 

 

 

举报

相关推荐

0 条评论