Skip to content

Commit

Permalink
Added separate style for ProgressBar to make it easier to override th…
Browse files Browse the repository at this point in the history
…e default style.
  • Loading branch information
johannilsson committed Feb 19, 2011
1 parent 01d5bfb commit 24fbd82
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionbar/res/layout/actionbar.xml
Expand Up @@ -79,10 +79,10 @@
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:paddingRight="5dip"
android:paddingRight="7dip"
android:indeterminateOnly="true"
android:visibility="gone"
style="?android:attr/progressBarStyleSmall"
style="@style/ActionBarProgressBar"
/>
<com.markupartist.android.widget.ScrollingTextView
android:id="@+id/actionbar_title"
Expand Down
2 changes: 2 additions & 0 deletions actionbar/res/values/styles.xml
Expand Up @@ -30,4 +30,6 @@
<item name="android:layout_marginRight">1px</item>
<item name="android:layout_marginLeft">0px</item>
</style>
<style name="ActionBarProgressBar" parent="@android:style/Widget.ProgressBar.Small">
</style>
</resources>
8 changes: 8 additions & 0 deletions actionbarexample/res/values/styles.xml
Expand Up @@ -14,4 +14,12 @@
<item name="android:layout_margin">0px</item>
</style>
-->

<!--
Example of how to change the style of the progress bar.
-->
<!--
<style name="ActionBarProgressBar" parent="@android:style/Widget.ProgressBar.Small.Inverse">
</style>
-->
</resources>

0 comments on commit 24fbd82

Please sign in to comment.