Skip to content

Commit

Permalink
Use standard refresh icon for action bar spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Jan 21, 2013
1 parent de3e20e commit ed8696b
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
Binary file added app/res/drawable-hdpi/action_refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/res/drawable-mdpi/action_refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/res/drawable-xhdpi/action_refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions app/res/drawable/actionbar_spinner.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2013 GitHub Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >

<item>
<rotate
android:drawable="@drawable/action_refresh"
android:fromDegrees="0"
android:interpolator="@android:anim/linear_interpolator"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="360" />
</item>

</layer-list>
5 changes: 2 additions & 3 deletions app/res/values/theme.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
</style>

<style name="IndeterminateProgress" parent="@android:style/Widget.ProgressBar">
<item name="android:indeterminateDrawable">@drawable/spinner</item>
<item name="android:minWidth">26dp</item>
<item name="android:maxWidth">26dp</item>
<item name="android:indeterminateDrawable">@drawable/actionbar_spinner</item>
<item name="android:minWidth">16dp</item>
</style>

</resources>

0 comments on commit ed8696b

Please sign in to comment.