竖屏录制视频后,播放视频旋转90度,如何让其不旋转 在播放的activity 加这一句 android:screenOrientation="landscape"就可以了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 @Override public void onConfigurationChanged(Configuration newConfig) { // TODO Auto-generated method stub super.onConfigurationChanged(newConfig); if(newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE){ this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); surfaceView.setLayoutParams(lp11); } else { final WindowManager.LayoutParams attrs = getWindow().getAttributes(); attrs.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().setAttributes(attrs); }} c能加载java吗? 求助大家一个问题:onCreate中调用线程与方法的问题!谢谢。 文字水平滚动 android2.2 播放.MP4格式视频出现丢帧、卡,大家看看给点建议 google map +GPS 定位 android开发一个任务管理器 Android环境变量配置 android中adb连接的相关问题 关于RxJava2和retrofit2使用的问题 APK在手机可以运行 在各大主流模拟器都暂停服务..有能解的么 求大神指教 viewPage适配listview 界面滑动很卡 android布局的问题
public void onConfigurationChanged(Configuration newConfig) {
// TODO Auto-generated method stub
super.onConfigurationChanged(newConfig);
if(newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE){
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN); surfaceView.setLayoutParams(lp11);
} else { final WindowManager.LayoutParams attrs = getWindow().getAttributes();
attrs.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN);
getWindow().setAttributes(attrs); }
}