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) {
}
如对本文有疑问, 点击进行留言回复!!
android RecyclerView checkbox复用解决
Android Q Input (1) -- InputManagerService启动
android -- ndk (stack corruption detected)
Android Span富文本图文混排 - ImageSpan(图文垂直居中)
网友评论