Home | History | Annotate | Download | only in drawable
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 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 <selector xmlns:android="http://schemas.android.com/apk/res/android">
     17     <item android:state_enabled="true">
     18         <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
     19             <!-- First item is the outer transparent sphere. -->
     20             <item>
     21                 <shape
     22                     android:shape="oval"
     23                 >
     24                     <size
     25                         android:width="16dip"
     26                         android:height="16dip"
     27                     />
     28                     <solid
     29                         android:color="@color/voicemail_playback_seek_bar_yet_to_play"
     30                     />
     31                 </shape>
     32             </item>
     33             <!-- Second item is the inner almost-opaque sphere.
     34                  Seems to derive its size from the outer, a size element doesn't change anything.
     35                  Looks like using left, right, top and bottom on the item is best to fix inner sphere. -->
     36             <item
     37                 android:left="3dip"
     38                 android:right="3dip"
     39                 android:top="3dip"
     40                 android:bottom="3dip"
     41             >
     42                 <shape
     43                     android:shape="oval"
     44                 >
     45                     <solid
     46                         android:color="@color/voicemail_playback_seek_bar_already_played"
     47                     />
     48                 </shape>
     49             </item>
     50         </layer-list>
     51     </item>
     52 
     53     <!-- Do not show the thumb when disabled -->
     54     <item android:drawable="@android:color/transparent" />
     55 </selector>