Monday, April 22, 2013

[android help] Android removing TitleBar for Activity causes ClassCastException. Why?

Android removing TitleBar for Activity causes ClassCastException. Why? - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















I'm getting a ClassCastException on the following line:



content = ((LinearLayout) findViewById(android.R.id.content).getParent());


This is only when I set the theme of the Activity/App as android:Theme.NoTitleBar


Same problem with Fullscreen also.



FATAL EXCEPTION: main
E/AndroidRuntime(648): java.lang.ClassCastException: com.android.internal.policy.impl.PhoneWindow$DecorView


















Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.










default






.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...