Wednesday, November 10, 2010

How to customize control

There are some icons and xmls under C:\Android\android-sdk-windows-1.6_r1\platforms\android-1.5(or other version)\data\res\drawable

To use different icons for standard control, we can copy the xml file and icons used in the xml to our own \drawable folder and set it in the layout xml

1) Grab the checkbox_background.xml and checkbox.xml from above folder and copy to the drawable folder in my project

2) Copy all the PNG files for the checkbox to the drawable folder in my project


3) Change the layout to use the checkbox (In my case, it is a CheckedTextView)



No comments:

Post a Comment