代码拉取完成,页面将自动刷新
同步操作将从 JustryDeng/notebook 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
图片
(上述图片的)ability_progress_bar.xml实现
<?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:alignment="center"
ohos:background_element="#3cc"
ohos:orientation="vertical">
<!--
orientation: 设置方向
height/width: 设置纵向/横向进度条的长度
progress_width: 设置进度条的宽度
min/max: 设置进度条所代表的的最小最大值
progress: 设置进度条当前进度的值
progress_element: 设置进度条的颜色
background_instruct_element: 设置进度条的底色
divider_lines_enabled: 分割线
通过代码progressBar.setDividerLineColor(Color.MAGENTA): 设置分割线的颜色
divider_lines_number: 指定分割成多少段
progress_hint_text: 设置进度条提示
progress_hint_text_size: 设置progress_hint_text的颜色
progress_hint_text_alignment: 设置progress_hint_text对齐方式
-->
<ProgressBar
ohos:id="$+id:progressBar2"
ohos:height="280vp"
ohos:width="280vp"
ohos:orientation="horizontal"
ohos:progress_width="30vp"
ohos:min="0"
ohos:max="100"
ohos:progress="50"
ohos:progress_element="red"
ohos:background_instruct_element="green"
ohos:divider_lines_enabled="true"
ohos:divider_lines_number="5"
ohos:progress_hint_text="50%"
ohos:progress_hint_text_size="30fp"
ohos:progress_hint_text_alignment="center"
/>
</DirectionalLayout>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。