鸿蒙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)
相关推荐
纯爱掌门人2 小时前
聊聊 HarmonyOS 上的应用内通知授权弹窗
前端·harmonyos·arkts
不喝水就会渴3 小时前
从基础到实战:鸿蒙 ArkUI 属性动画开发指南
华为·交互·动画·harmonyos
代码论斤卖4 小时前
OpenHarmony teecd频繁崩溃问题分析
linux·harmonyos
南村群童欺我老无力.5 小时前
鸿蒙 - TextInput高度设置的边界行为
华为·harmonyos
木斯佳5 小时前
HarmonyOS 悬浮球实战:从页面内组件到 SubWindow 方案
harmonyos·悬浮球
仓颉编程语言6 小时前
直播预告 |【仓颉社区】第44期WORKSHOP
华为·ai·ai编程·鸿蒙·仓颉编程语言
Lanren的编程日记7 小时前
Flutter 鸿蒙应用AR功能集成实战:多平台AR框架+模拟模式,打造增强现实体验
flutter·ar·harmonyos
南村群童欺我老无力.7 小时前
鸿蒙PC开发的Slider组件blockSize参数的类型要求
华为·harmonyos
C雨后彩虹7 小时前
文件目录大小
java·数据结构·算法·华为·面试
前端技术8 小时前
华为余承东:鸿蒙终端设备数突破5500万
java·前端·javascript·人工智能·python·华为·harmonyos