如何在天然Android中设计循环步骤进度指标

发布于 2025-02-11 07:53:16 字数 122 浏览 1 评论 0原文

如下所示,请帮助我实现步骤进度指标。我找不到任何相关库来实现这一目标。

“

Please help me to achieve step progress indicator as shown below in android. I could not find any relevant library to achieve this.

Text

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

才能让你更想念 2025-02-18 07:53:16

创建7个不同的向量图形并在

最简单的方法中更新它们,我知道

使用此链接“ nofollow noreferrer”>动画矢量

Create 7 different vector graphics and update them one at a time

Simplest method I know of

Use this link animated vector

提笔书几行 2025-02-18 07:53:16

在项目级构建中添加以下依赖性。gradle

allprojects {
    repositories {
        // ...
        maven { url "https://jitpack.io" }
    }
}

添加以下内容

dependencies {
    // ...
        implementation 'com.github.jakob-grabner:Circle-Progress-View:1.4'
}

<com.ttv.facerecog.view.progress.CircleProgressView
        android:id="@+id/circleView"
        android:layout_width="300dp"
        android:layout_height="300dp"
        app:cpv_barColor="#519d35"
        app:cpv_barWidth="@dimen/__20sdp"
        app:cpv_blockCount="8"
        app:cpv_blockScale="0.96"
        app:cpv_direction="CW"
        app:cpv_innerContourSize="0dp"
        app:cpv_text="1 of 7"
        app:cpv_textSize="46sp"
        app:cpv_textColor="#000000"
        app:cpv_textScale="3"
        app:cpv_textMode="Text"
        app:cpv_textTypeface="bold"
        app:cpv_maxValue="12"
        app:cpv_outerContourSize="0dp"
        app:cpv_rimColor="#D6D6D6"
        app:cpv_rimWidth="@dimen/__20sdp"
        app:cpv_seekMode="true"
        app:cpv_showUnit="false"
        app:cpv_spinColor="#D6D6D6"
        app:cpv_unit="%"
        app:cpv_unitScale="1"
        app:cpv_value="0"
        tools:cpv_value="6" />

有关更多信息单击此处

Added following dependency in project level build.gradle

allprojects {
    repositories {
        // ...
        maven { url "https://jitpack.io" }
    }
}

Add following in app module build.gradle

dependencies {
    // ...
        implementation 'com.github.jakob-grabner:Circle-Progress-View:1.4'
}

How to use :

<com.ttv.facerecog.view.progress.CircleProgressView
        android:id="@+id/circleView"
        android:layout_width="300dp"
        android:layout_height="300dp"
        app:cpv_barColor="#519d35"
        app:cpv_barWidth="@dimen/__20sdp"
        app:cpv_blockCount="8"
        app:cpv_blockScale="0.96"
        app:cpv_direction="CW"
        app:cpv_innerContourSize="0dp"
        app:cpv_text="1 of 7"
        app:cpv_textSize="46sp"
        app:cpv_textColor="#000000"
        app:cpv_textScale="3"
        app:cpv_textMode="Text"
        app:cpv_textTypeface="bold"
        app:cpv_maxValue="12"
        app:cpv_outerContourSize="0dp"
        app:cpv_rimColor="#D6D6D6"
        app:cpv_rimWidth="@dimen/__20sdp"
        app:cpv_seekMode="true"
        app:cpv_showUnit="false"
        app:cpv_spinColor="#D6D6D6"
        app:cpv_unit="%"
        app:cpv_unitScale="1"
        app:cpv_value="0"
        tools:cpv_value="6" />

Result

enter image description here

For more information Click Here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文