最好在配置文件进行设置,在onResume中设置,会导致两次onResume
代码如下:
<activity android:name=".LogoView" android:label="@string/app_name" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar" >