Just a hunch but try calling setTheme after calling setContentView.... ---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ----------------------------------------------------------------------
On Sun, Jun 6, 2010 at 5:02 AM, Sudeep Jha <sudeep.neti...@gmail.com> 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 Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow at > http://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en