Repository navigation
Home
dips25 edited this page Apr 20, 2025
·
3 revisions
dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { mavenCentral() maven { url 'https://jitpack.io' } } }
dependencies {
implementation 'com.github.dips25:SpectrumProgress:v1.0'
}
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
`<com.anim.spectrumprogress.Spectrum`
`android:layout_width="match_parent"`
`android:layout_height="250dp"`
`app:layout_constraintTop_toTopOf="parent"`
`app:spectrumWidth="100"`
`app:spectrumColor="@color/design_default_color_secondary"`
`app:spectrumOffset="10"`
`app:duration="1000"`
`android:id="@+id/spectrum"/>`
`<Button`
`android:layout_width="match_parent"`
`android:layout_height="wrap_content"`
`app:layout_constraintBottom_toBottomOf="parent"`
`app:layout_constraintStart_toStartOf="parent"`
`app:layout_constraintEnd_toEndOf="parent"`
`android:layout_margin="20dp"`
`android:text="Start"`
`android:id="@+id/start_anim"/>`
</androidx.constraintlayout.widget.ConstraintLayout>
Start in activity/fragment/dialog
