Last active
August 29, 2015 13:57
-
-
Save jinqian/9530592 to your computer and use it in GitHub Desktop.
android progress bar style
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
| <!-- This is the case when you define the style in your style.xml --> | |
| <ProgressBar | |
| android:id="@+id/background_sync_indicator" | |
| style="?android:attr/progressBarStyleHorizontal" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_above="@+id/overlay_info_cache" | |
| android:layout_marginBottom="-6dp" | |
| android:indeterminate="true" | |
| android:visibility="gone" /> | |
| <!-- This is the case when you use a custom drawable directly --> | |
| <ProgressBar | |
| android:id="@+id/reload_indicator" | |
| style="@android:style/Widget.ProgressBar.Horizontal" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_alignParentTop="true" | |
| android:maxHeight="3dp" | |
| android:minHeight="3dp" | |
| android:progressDrawable="@drawable/progressbar_webview" | |
| android:visibility="gone" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment