tags:

views:

99

answers:

2

Hi..........

How to create a custom themes and use it in the code? in menu how to implement theme option and apply for the activity?

Please Help.

with regards Kavya

A: 

read this please: http://developer.android.com/guide/topics/ui/themes.html

if afterwards you still have specific question regarding building a custom theme do ask. Aslo i would recommand checking out the android code (instructions are here: source code link or using existing code (may be old: android source code for eclipse) and check the resources you can see there exactly how each item is drawn and what is it's style.

codeScriber
I've gone through the android developer site. my doubt is if i create a many themes for example: theme1,theme2.. etc. these will in sub menus. if theme1 is selected that theme should be applied to activity.if theme2 is selected theme2 should be applied to whole activity. how to do?
As far as i know you can apply a theme to an application and not only an activity and this way your theme will be the same across all the application, all the activities, but i'm not sure, if you want to be able to change your themes like in a theme pack, i'm not so sure the android mechanism for themse is the one for you... you need to create your own framework.
codeScriber
ok i'l try. thanks a lot