The title says it all. Sure, not every one of us is good with Photoshop. Even I am limited to its basics. Most of the time I look for free PNG images of user interface controls or other images that I can use for my apps.
The Android Holo Colors Generator allows developers to easily create Android components such as EditText or Spinner with your own preferred colors for your Android app. It will generate all necessary nine patch assets plus associated XML drawables and styles which you can copy straight into your project.
It’s that easy!
Simply select which widget you want to get resources for and it will create the images and XML files and package them in a ZIP file.
Visit the site through this link http://android-holo-colors.com.
If you are using IntelliJ or Android Studio for your Android development, this comes as a plugin so you can easily integrate and use it from within the IDE.
Changing themes and styles of Android widgets require you to modify its drawable images. For the Spinner widget, I found it necessary to have the height changed because the default is just too fat.
You need to create your own 9 patch images or you can get the existing one in Android‘s and modify it. A quicker way though is to make use of this great article by Kostya Vasilyev on compact Spinner widgets.
There are already 9 patch images for you to use. If you want it to have a different color then you will have to modify it yourself. But at least there is already a thin image ready for you to use.
This is a screenshot taken from his site showing the slim spinners side-by-side with the regular ones in an HTC Hero smartphone.
And these are his 9 patch images.
To use the images in an XML file, place them in a selector XML file like this and use it in the Spinner tag.
There you have it. Now you have slimmer Spinner widgets for your app! Just make sure when you save these images from my post you replace the -9 in the filename to .9 because all 9 patch images should end with .9.png.