Last active
March 4, 2021 20:36
-
-
Save Kaspic/4c5e3788cdf9622da21e81934a68e3a0 to your computer and use it in GitHub Desktop.
https://kennay-kermani.medium.com/android-material-progress-indicator-2ff44b7296cb - Material ProgressIndicator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.google.android.material.progressindicator.LinearProgressIndicator | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:indeterminateAnimationType="contiguous" /> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.google.android.material.progressindicator.LinearProgressIndicator | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:indeterminateAnimationType="disjoint" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.google.android.material.progressindicator.LinearProgressIndicator | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:trackCornerRadius="2dp"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val progress = calculateCurrentProgress() | |
progressIndicator.setProgressCompat(progress, true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment