<!-- android:screenOrientation="" 固定屏幕显示模式,portrait表示横向,landscape表示纵向 -->
<!-- android:theme="@style/Sub" 设置activity的样式 -->
<activity android:name=".Test" android:theme="@style/Sub" android:screenOrientation="portrait"></activity>
values文件夹下的themes.xml文件中
<style name="SubTitleBackground">
<item name="android:background">#BA3A37</item>
</style>
<style name="Sub" parent="android:Theme">
<item name="android:windowTitleSize">40dp</item>
<item name="android:windowTitleBackgroundStyle">@style/SubTitleBackground</item>
<item name="android:windowBackground">#E88024</item>
</style>