Skip to content

Commit ed8696b

Browse files
committed
Use standard refresh icon for action bar spinner
1 parent de3e20e commit ed8696b

File tree

5 files changed

+31
-3
lines changed

5 files changed

+31
-3
lines changed
1.11 KB
Loading
748 Bytes
Loading
1.48 KB
Loading
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2013 GitHub Inc.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
18+
19+
<item>
20+
<rotate
21+
android:drawable="@drawable/action_refresh"
22+
android:fromDegrees="0"
23+
android:interpolator="@android:anim/linear_interpolator"
24+
android:pivotX="50%"
25+
android:pivotY="50%"
26+
android:toDegrees="360" />
27+
</item>
28+
29+
</layer-list>

app/res/values/theme.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
</style>
3131

3232
<style name="IndeterminateProgress" parent="@android:style/Widget.ProgressBar">
33-
<item name="android:indeterminateDrawable">@drawable/spinner</item>
34-
<item name="android:minWidth">26dp</item>
35-
<item name="android:maxWidth">26dp</item>
33+
<item name="android:indeterminateDrawable">@drawable/actionbar_spinner</item>
34+
<item name="android:minWidth">16dp</item>
3635
</style>
3736

3837
</resources>

0 commit comments

Comments
 (0)