代码拉取完成,页面将自动刷新
同步操作将从 HarmonyOS-TPC/NumberProgressBar 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
NumberProgressBar is a combination of various types of progressBar.
Solution 1: local har package integration
implementation fileTree(dir: 'libs', include: ['*.jar','*.har'])
Solution 2:
allprojects{
repositories{
mavenCentral()
}
}
implementation 'io.openharmony.tpc.thirdlib:NumberProgressBar:1.0.1'
Use it in your own code:
<com.daimajia.numberprogressbar.NumberProgressBar
ohos:id="$+id:number_progress_bar"
ohos:width="match_parent"
ohos:height="match_content"
/>
There are several attributes you can set:
The reached area and unreached area:
The text area:
The bar:
for example:
<com.daimajia.numberprogressbar.NumberProgressBar
ohos:width="match_parent"
ohos:height="10vp"
app:progress_unreached_color="#CCCCCC"
app:progress_reached_color="#3498DB"
app:progress_unreached_bar_height="1vp"
app:progress_reached_bar_height="2vp"
app:progress_text_size="10fp"
app:progress_text_color="#3498DB"
app:progress_text_offset="1vp"
app:progress_text_visibility="1"
app:progress_max="100"
app:progress_current="80"/>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。