wheel_bg.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Android Wheel Control.
  4. http://android-devblog.blogspot.com/2010/05/wheel-ui-contol.html
  5. Copyright 2010 Yuri Kanivets
  6. Licensed under the Apache License, Version 2.0 (the "License");
  7. you may not use this file except in compliance with the License.
  8. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  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. <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
  17. <item>
  18. <shape android:shape="rectangle">
  19. <gradient
  20. android:startColor="#333"
  21. android:centerColor="#DDD"
  22. android:endColor="#333"
  23. android:angle="90" />
  24. <stroke android:width="1dp" android:color="#FF333333" />
  25. </shape>
  26. </item>
  27. <item android:left="4dp" android:right="4dp" android:top="1dp" android:bottom="1dp">
  28. <shape android:shape="rectangle">
  29. <gradient
  30. android:startColor="#AAA"
  31. android:centerColor="#FFF"
  32. android:endColor="#AAA"
  33. android:angle="90" />
  34. </shape>
  35. </item>
  36. </layer-list>