80,351
社区成员
发帖
与我相关
我的任务
分享
int orientation = getResources().getConfiguration().orientation; //判断状态
if (orientation == Configuration.ORIENTATION_PORTRAIT) {
setContentView(R.layout.vmain_layout);
} else {
setContentView(R.layout.main_layout);
}
笨方法