HarmonyOS APP - RoundProgressBar体验与分享 原创

发布于 2021-3-29 14:25
浏览
0收藏

 

RoundProgressBar用于显示环形进度

HarmonyOS APP - RoundProgressBar体验与分享-开源基础软件社区

  

 

代码如下

<?xml version="1.0" encoding="utf-8"?>
<DirectionalLayout
    xmlns:ohos="http://schemas.huawei.com/res/ohos"
    ohos:height="match_parent"
    ohos:width="match_parent"
    ohos:orientation="vertical"
    ohos:background_element="#FF000000">

    <DirectionalLayout
        ohos:height="0px"
        ohos:width="match_parent"
        ohos:weight="1">
        <RoundProgressBar
            ohos:id="$+id:round_progress_bar"
            ohos:height="200vp"
            ohos:width="200vp"
            ohos:progress_width="10vp"
            ohos:progress="20"
            ohos:progress_color="#47CC47"
            ohos:layout_alignment="center"/>
    </DirectionalLayout>
    <DirectionalLayout
        ohos:height="0px"
        ohos:width="match_parent"
        ohos:weight="1">
        <RoundProgressBar
            ohos:height="200vp"
            ohos:width="200vp"
            ohos:progress_width="10vp"
            ohos:progress="20"
            ohos:progress_color="#47CC47"
            ohos:start_angle="45"
            ohos:max_angle="270"
            ohos:progress_hint_text="加载中。。。"
            ohos:progress_hint_text_color="#007DFF"
            ohos:layout_alignment="center" />
    </DirectionalLayout>

</DirectionalLayout>

完整代码地址:

https://gitee.com/jltfcloudcn/jump_to/tree/master/jltf_RoundProgressBar_component

©著作权归作者所有,如需转载,请注明出处,否则将追究法律责任
标签
已于2021-3-29 16:50:37修改
收藏
回复
举报
回复
添加资源
添加资源将有机会获得更多曝光,你也可以直接关联已上传资源 去关联
    相关推荐