title: Edmodo android image cropper, fix aspect ratio
body: <p>I've some problem using edmodo/cropper library on android lollipop. 
  My app should take some pictures, and after each picture is taken, user should crop a square image.
  this is my layout:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  
  &lt;com.example.newapicamera.AutoFitTextureView
      android:id="@+id/texture"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_above="@+id/footer" /&gt;
  
  &lt;com.edmodo.cropper.CropImageView
      xmlns:custom="http://schemas.android.com/apk/res-auto"
      android:id="@+id/CropImageView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_above="@+id/footer"
      android:visibility="invisible" /&gt;
  
  &lt;ImageView
      android:id="@+id/footer"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"
      android:src="@drawable/footer" /&gt;
  
  &lt;TextView
      android:id="@+id/current_picture"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"
      android:layout_alignParentLeft="true"
      android:textColor="#FFFFFF"
      android:textSize="30sp" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>and this is how i launch library for crop after picture is taken;</p>
  
  <pre><code>crop_view.setImageBitmap(bitmap);
  mCameraDevice.close();
  mTextureView.setVisibility(View.INVISIBLE);
  crop_view.setVisibility(View.VISIBLE);
  DisplayMetrics displayMetrics = getResources().getDisplayMetrics();
  int dpWidth = displayMetrics.widthPixels;
  crop_view.setFixedAspectRatio(true);
  crop_view.setAspectRatio(dpWidth, dpWidth);
  </code></pre>
  
  <p>I have the sequent problem:</p>
  
  <ul>
  <li>with this code, the crop is a stripe high as screen</li>
  <li>if i remove fixed aspect ratio, the aspect ratio i've is ignored, and i obtain a rectangular crop.
  So, how can i do to force crop to a square?</li>
  </ul>