Themes

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Themes

Postby sabs » Wed Jan 27, 2010 8:19 am

Hii

I have set the dialog theme for my application in manifest.xml file. Now i would like to programatically set the theme for my application using setTheme(). setTheme is working properly for Theme_Light, if i change the option to Theme_Dialog or Theme_Transulent it is not working where as if i set the same themes in manifest.xml file they are working properly. I am not getting why they are not working if i use the setTheme(). can any one help to solve my problem.

public class SList extends Activity
{
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setTheme(android.R.style.Theme_Light); ----> working properly
setTheme(android.R.style.Theme_Dialog); -------> not working
setTheme(android.R.style.Theme_Translucent); -----> not working
setContentView(R.layout.main);

thanks
sabs
sabs
Developer
Developer
 
Posts: 32
Joined: Fri Dec 04, 2009 2:55 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 2 guests