title: set image size to full screen in android
body: <p>I'm having an android app in which I'm taking a picture using the android camera.
  This picture is taken in the <code>activity A</code> and after that is sent to <code>activity B</code> where is edited.</p>
  
  <p>This is how I receive my image in <code>activity B</code>:</p>
  
  <pre><code>Bundle extras = getIntent().getExtras();
  BitmapFactory.Options options=new BitmapFactory.Options();
          options.inSampleSize = 5;
          byte[] imageData = extras.getByteArray("imageData");
          Bitmap myImage = BitmapFactory.decodeByteArray(imageData , 0, imageData.length,options);
  
          Matrix mat=new Matrix();
          mat.postRotate(90);
          bitmapResult = Bitmap.createBitmap(myImage, 0, 0, myImage.getWidth(), myImage.getHeight(), mat, true); 
   ImageView imageView = (ImageView) findViewById(R.id.myPic);
          imageView.setImageBitmap(bitmapResult);
  </code></pre>
  
  <p>As you can see I'm rotating the <code>bitmap</code> I receive with 90 using this:</p>
  
  <pre><code>Matrix mat=new Matrix();
              mat.postRotate(90);
  </code></pre>
  
  <p>And here is my <code>imageView</code> in xml file:</p>
  
  <pre><code>&lt;ImageView  
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:layout_gravity="center"
      android:id="@+id/myPic"
      /&gt;
  </code></pre>
  
  <p>The problem that I'm facing is that my picture is not full screen...it's almoust full screnn but not entirly.As you can see here: </p>
  
  <p><img src="https://i.stack.imgur.com/XrwKK.png" alt="enter image description here"></p>
  
  <p>If you could help me to increase a little bit its size I would really apreciate it.Thanks</p>
  
  <p>EDIT:I wanna increase the width of my image only.Sorry!!</p>