title: setting opencv video to fullscreen android
body: <p>i am trying to set a video to fullscreen using opencv. the input is coming from the camera.
  it shows on the screen in the center but not as full screen.
  relevant code:</p>
  
  <pre><code>public class Sample3Native extends Activity implements CvCameraViewListener {
  private static final String TAG = "OCVSample::Activity";
  
  private Mat                    mRgba;
  private Mat                    mGrayMat;
  private Mat                    mFinalMat;
  
  private CameraBridgeViewBase   mOpenCvCameraView;
  
  
  private BaseLoaderCallback     mLoaderCallback = new BaseLoaderCallback(this) {
      @Override
      public void onManagerConnected(int status) {
          switch (status) {
              case LoaderCallbackInterface.SUCCESS:
              {
                  Log.i(TAG, "OpenCV loaded successfully");
  
                  // Load native library after(!) OpenCV initialization
                  System.loadLibrary("native_sample");
  
  
  
  
                  mOpenCvCameraView.enableView();
  
  
  
              } break;
              default:
              {
                  super.onManagerConnected(status);
              } break;
          }
      }
  };
  
  public Sample3Native() {
      Log.i(TAG, "Instantiated new " + this.getClass());
  }
  
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      Log.i(TAG, "called onCreate");
      super.onCreate(savedInstanceState);
      requestWindowFeature(Window.FEATURE_NO_TITLE);
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
  
      setContentView(R.layout.tutorial3_surface_view);
  
      mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.tutorial4_activity_surface_view);
      mOpenCvCameraView.setCvCameraViewListener(this);
  
  
  }
  </code></pre>
  
  <p>i have tried using:</p>
  
  <pre><code>//mOpenCvCameraView.setScaleX(0.8f);
                     // mOpenCvCameraView.setScaleY(0.4f);
  
                  //mOpenCvCameraView.setMinimumHeight(800);
                 // mOpenCvCameraView.setMinimumWidth(1000);
  </code></pre>
  
  <p>but it doesnot work.</p>
  
  <p>how can i strech the frames to fill all of the screen? </p>