如何在Android布局中使用圆形起点设置进度条?
我正在尝试使用Android中给出的默认进度栏创建一个进度栏,我实现了80%的需要设计,但找不到完成所需设计的代码。
这是必需的设计
给定设计 我需要在我的进度栏中带上圆形的零件[以蓝色突出
显示
]
<ProgressBar
android:id="@+id/ww_progress_bar"
android:visibility="visible"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/circular_shape"
android:progressDrawable="@drawable/circular_progress_bar"
android:textAlignment="center" />
KT课程
binding.wwProgressBar.visibility = VISIBLE
binding.wwProgressBar.setProgress(40)
binding.wwProgressBar.max = progressMax
是否可以带来所需的设计?谁能帮助完成这一设计?
I am trying to create a progress bar using default progress bar given in android , I achieved 80% of that required design but i cannot find a code to finish the required design.
this is a required design
given design
i need to bring the rounded part [highlighted in blue ] in my progress bar
xml code
<ProgressBar
android:id="@+id/ww_progress_bar"
android:visibility="visible"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/circular_shape"
android:progressDrawable="@drawable/circular_progress_bar"
android:textAlignment="center" />
KT class
binding.wwProgressBar.visibility = VISIBLE
binding.wwProgressBar.setProgress(40)
binding.wwProgressBar.max = progressMax
is it possible to bring the required design? can anyone help to finish this design?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要使用seek bar来
使用自定义拇指
或
轻松实施,
可以使用gihub库
https:// https:// https:// github.com/tankery/circularseekbar
you need to use seek bar for it
use custom thumb for it
or
for easy implementation
you can use gihub library
https://github.com/tankery/CircularSeekBar
您应该在
pregressbar
中设置thumb
您可以使用此链接有关更多信息
you should set
thumb
in yourProgressBar
you can use this link for more information