如何在Android中使用水平的“物料进度指示器”?

问题描述 投票:1回答:1

我已经使用“ android.material.progressindicator”来显示水平视图中的进度,但是我听不到我的XML信息>

<com.google.android.material.progressindicator.ProgressIndicator
                android:background="@color/grey"
                android:id="@+id/progressInd"
                style="@style/Widget.MaterialComponents.ProgressIndicator.Linear.Determinate"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:indeterminate="false"
                android:max="100"
                android:progress="30"
                android:progressDrawable="@drawable/bidding_progress" />

enter image description here

我已经使用“ android.material.progressindicator”来显示水平视图中的进度,但是我听不到我的XML

android material-design android-progressbar material-components-android material-components
1个回答
1
投票

您可以使用:

<com.google.android.material.progressindicator.ProgressIndicator
    style="@style/Widget.MaterialComponents.ProgressIndicator.Linear.Determinate"
    app:indicatorColor="?attr/colorPrimary"
    app:trackColor="@color/..."
    />
© www.soinside.com 2019 - 2024. All rights reserved.