当前位置: 代码迷 >> Android >> android imageview图片怎么设置使其全屏
  详细解决方案

android imageview图片怎么设置使其全屏

热度:74   发布时间:2016-05-01 21:48:44.0
android imageview图片如何设置使其全屏
android imageview图片如何设置使其全屏

------解决方案--------------------
activity中增加全屏
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.fullScreen();
}

private void fullScreen(){
requestWindowFeature(Window.FEATURE_NO_TITLE); 
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
  相关解决方案