1.分为 application 和 activity 中都能设置android:theme。一般最新出现的android:theme可以掩盖先前出现的。
ex:
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.rtstvlc.VideoPlayerActivity"
android:configChanges="orientation|screenSize"
android:screenOrientation="landscape"
android:theme="@style/AppTheme1">
则 红色 掩盖了 蓝色。(猜测:)
2.还可以在代码中设置:一定要在setContentView(R.layout.main)之前。
如下:
//去掉标题栏
requestWindowFeature(Window.FEATURE_NO_TITLE);
//设定风格
setTheme(android.R.style.Theme_Holo);