Set the theme in your manifest file for that activity...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Jul 20, 2012 at 1:00 AM, sumit dhaniya <[email protected]>wrote:

> setTheme(Theme) is method of an activity and can be applied to an activity
> only before it is created if you want to change the Theme you need to
> recreate the activity.
>
> On Sunday, June 6, 2010 12:17:37 PM UTC+5:30, Sudeep wrote:
>>
>>  Hi All,
>>
>> This is my  themes.xml file
>>
>> <
>> resources>
>>
>> <style name=*"Theme.Blue"* parent=*"android:Theme"*>
>>
>> <item name=*"android:windowBackground"*>*@drawable*/**bodyimg_blue</item>
>>
>> <item name=*"android:colorBackground"***>@color/*royalblue*</item>
>>
>> <item name=*"android:textColor"*>@**color/*midnightblue*</item>
>>
>> <item name=*"android:textViewStyle"*>@**style/TextViewBlue</item>
>>
>> </style>
>> <resources>
>> This is main activity code snippet
>>
>> *public* *void* onCreate(Bundle savedInstanceState) {
>>
>> *super*.onCreate(**savedInstanceState);
>>
>> setTheme(R.style.Theme_Blue);
>>
>> setContentView(R.layout.
>> *main_screen*);
>> ...
>> The background image is not getting loaded but the text color and
>> textViewStyle got changed.
>> The background image remains the defalult one -blank screen.
>> If I am setting the theme in android manifest file then it works properly.
>> Can anybody tell me the reason for this?
>>
>> Warm Regards,
>> Sudeep
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to