HarmonyOS Progress如何设置左边圆角。右边不需要圆角。

HarmonyOS
2024-12-24 16:45:30
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
shlp

请参考以下代码:

@Entry
@Component
struct ProgressExample {
  build() {
    Column({ space: 15 }) {
      Text('Linear Progress').fontSize(9).fontColor(0xCCCCCC).width('90%')
      Progress({ value: 20, total: 100, type: ProgressType.Linear })
        .width(200)
        .backgroundColor('#B3E54C')
        .style({ strokeRadius: 0, strokeWidth: 100, })
        .color('#917AF9')
        .borderColor('#00000000')
        .borderRadius({
          topLeft: 20,
          topRight: 0,
          bottomLeft: 20,
          bottomRight: 0
        })
        .clip(true)
    }
    .width('100%')
    .margin({ top: 30 })
  }
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
分享
微博
QQ
微信
回复
2024-12-24 19:00:24
相关问题
Swiper切换不需要动画
1473浏览 • 2回复 待解决
HarmonyOS Progress 怎样自定义圆角大小
795浏览 • 1回复 待解决
HarmonyOS Canvas如何设置圆角
750浏览 • 1回复 待解决
HarmonyOS span中如何设置圆角
1136浏览 • 1回复 待解决
HarmonyOS WebView 圆角设置失效
817浏览 • 1回复 待解决
HarmonyOS CustomDialog怎么设置圆角
1005浏览 • 1回复 待解决
UIAbility是否可以设置圆角
2434浏览 • 1回复 待解决
HarmonyOS bindSheet怎么设置圆角大小
732浏览 • 1回复 待解决
HarmonyOS stack设置圆角不生效
971浏览 • 1回复 待解决
WebView支持设置WebView圆角吗?
1778浏览 • 1回复 待解决
HarmonyOS column设置圆角不起作用
1523浏览 • 1回复 待解决
如何设置分组列表的圆角和间距
2738浏览 • 1回复 待解决
HarmonyOS bindPopup如何去掉圆角
782浏览 • 1回复 待解决