1、AndroidManifest.xml中将activity
android:name="com.suma.smartview.activity.LTVDetailActivity"
android:configChanges="keyboardHidden|orientation|screenSize"/>
<activity>
super.onConfigurationChanged(newConfig);
//切换为竖屏
if (newConfig.orientation == this.getResources().getConfiguration().ORIENTATION_PORTRAIT) {
}
//切换为横屏
else if (newConfig.orientation == this.getResources().getConfiguration().ORIENTATION_LANDSCAPE) {
}
新闻热点
疑难解答
图片精选