Categories

Tags

None

    Recent Comments

    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

    image

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

    android:checkMark="@drawable/checkbox"

    image

    November 10, 2010 04:23 by dotnetideas
    E-mail | Permalink | Comments (4) | Comment RSSRSS comment feed

    Comments

    January 25. 2011 09:23

    Android mobile application

    Thanks. In fact I did it in a bit different way (as alswys I'm going by a longer way), but now will know a short one. )

    Android mobile application