Created
February 28, 2014 17:33
-
-
Save arianimartins/9275604 to your computer and use it in GitHub Desktop.
ProgressBar Horizontal (Infinita)
This file contains 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
Adicionar o xml da ProgressBar onde você quer que ela apareça. | |
<ProgressBar | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
style="@android:style/Widget.ProgressBar.Horizontal" | |
android:indeterminateBehavior="repeat" | |
android:indeterminate="true" | |
android:layout_marginRight="5dp" | |
/> | |
O que queremos é: | |
android:indeterminate: | |
Ativa/Desativa o modo "indeterminate" com valores: | |
"true" ou "false" | |
android:indeterminateBehavior: | |
Determina o comportamento da progress bar quando ela chegar ao fim com valores: | |
"repeat" ou "cycle" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment