鸿蒙Android4个脚有脚线

效果

复制代码
  min:number=122
  max:number=150




    Row(){
        Stack(){

          // 底
          Text().border({
            width:2,
            color:$r('app.color.yellow')
          })
            .height(this.max).aspectRatio(1)

          // 长
          Text().backgroundColor($r('app.color.white'))
            .height(this.max).width(this.min)

          // 宽
          Text().backgroundColor($r('app.color.white'))
            .height(this.min).width(this.max)

          Text('erweim').backgroundColor(Color.Yellow).width(this.min).aspectRatio(1)


        }
        .alignContent(Alignment.Center)
      }
      .justifyContent(FlexAlign.Center)
      .width('100%')

      .layoutWeight(1)

      Divider().vertical(false).color($r('app.color.grey4')).strokeWidth(1)
相关推荐
南村群童欺我老无力.7 小时前
Flutter应用鸿蒙迁移实战:性能优化与渐进式迁移指南
javascript·flutter·ci/cd·华为·性能优化·typescript·harmonyos
水手冰激淋7 小时前
rn_for_openharmony狗狗之家app实战-领养完成实现
harmonyos
奔跑的露西ly11 小时前
【HarmonyOS NEXT】Stage模型
华为·harmonyos
威哥爱编程12 小时前
鸿蒙 APP 还是卡顿?API 21 性能优化这 3 招,立竿见影!
harmonyos·arkts·arkui
威哥爱编程12 小时前
List 组件渲染慢?鸿蒙API 21 复用机制深度剖析,一行代码提速 200%!
harmonyos·arkts·arkui
以太浮标12 小时前
华为eNSP模拟器综合实验之- VLAN-QinQ技术解析
运维·网络·华为·信息与通信
2501_9445210013 小时前
rn_for_openharmony商城项目app实战-语言设置实现
javascript·数据库·react native·react.js·harmonyos
程序猿追13 小时前
【鸿蒙PC桌面端开发】使用ArkTS做出RGB 色环选择器
华为·harmonyos
C雨后彩虹14 小时前
书籍叠放问题
java·数据结构·算法·华为·面试
zhujian8263715 小时前
二十五、【鸿蒙 NEXT】@ObservedV2/@Trace实现组件动态刷新
华为·harmonyos·trace·lazyforeach·observedv2