android imageview图片如何设置使其全屏

解决方案 »

  1.   

    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);
    }
      

  2.   

    使用相对布局,imageView的长和宽都设成fill parent,activity的theme设成fullscreen