Şu anda bir aktivitede getApplicationContext().setTheme()
aramak için zor bir zaman var, ben sadece bir tema kaynağı kod alanında etkinlik kapsamı yerine bir uygulama kapsamı uygulamak istiyorum, ama sorun şu ki, bu hiç çalışmıyor Bunu herkes anlatabilir.Neden getApplicationContext() setTheme() bir aktivitede çalışmıyor?
Çok teşekkürler.
public class StartUp extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
/*
* setTheme(android.R.style.Theme_Black_NoTitleBar_Fullscreen);
* //that works!
*/
this.getApplicationContext().setTheme(
android.R.style.Theme_Black_NoTitleBar_Fullscreen);
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
İşte hata raporu: http: // code .google.com/p/android/issues/detail? id = 4394 – stealthcopter