OSDN Git Service

Merge "Don't crash on opening ejecting USB." into oc-dev
[android-x86/packages-apps-Settings.git] / res / drawable / ring_progress.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2015 The Android Open Source Project
3
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7
8           http://www.apache.org/licenses/LICENSE-2.0
9
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
16
17 <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
18     <item android:id="@android:id/background">
19         <shape
20             android:innerRadiusRatio="2.2"
21             android:shape="ring"
22             android:thickness="@dimen/ring_progress_bar_thickness"
23             android:useLevel="false"
24             android:tint="?android:colorControlNormal">
25             <solid android:color="@color/white_disabled" />
26         </shape>
27     </item>
28     <item android:id="@android:id/progress">
29         <rotate
30             android:fromDegrees="270"
31             android:pivotX="50%"
32             android:pivotY="50%"
33             android:toDegrees="270">
34             <shape
35                 android:innerRadiusRatio="2.2"
36                 android:shape="ring"
37                 android:thickness="@dimen/ring_progress_bar_thickness"
38                 android:tint="?android:attr/colorControlActivated">
39                 <solid android:color="@android:color/white" />
40             </shape>
41         </rotate>
42     </item>
43 </layer-list>