title: How to not crop ImageView inside a LinearLayout?
body: <h1>Hi, I'm trying to make something like this</h1>
  <p><a href="https://i.stack.imgur.com/cEhVK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cEhVK.png" alt="what i want" /></a></p>
  <h1>And this is what I get</h1>
  <p><a href="https://i.stack.imgur.com/KUedw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KUedw.png" alt="enter image description here" /></a></p>
  <h2>This is the xml</h2>
  <pre><code>    &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
          xmlns:tools=&quot;http://schemas.android.com/tools&quot;
          android:layout_width=&quot;180dp&quot;
          android:layout_height=&quot;match_parent&quot;
          android:layout_marginHorizontal=&quot;10dp&quot;&gt;
  
      &lt;LinearLayout
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              android:background=&quot;@drawable/category_item_background&quot;
              android:clickable=&quot;true&quot;
              android:focusable=&quot;true&quot;
              android:layout_marginTop=&quot;50dp&quot;
              android:orientation=&quot;vertical&quot;
              android:paddingBottom=&quot;20dp&quot;&gt;
  
          &lt;ImageView
                  android:id=&quot;@+id/planetImage&quot;
                  android:layout_marginTop=&quot;-50dp&quot;
                  android:layout_gravity=&quot;center_horizontal&quot;
                  android:layout_width=&quot;100dp&quot;
                  android:layout_height=&quot;100dp&quot;
                  android:src=&quot;@drawable/earth_transparent&quot;
                  /&gt;
  
          &lt;TextView
                  android:id=&quot;@+id/planetName&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:gravity=&quot;center_horizontal&quot;
                  android:layout_marginTop=&quot;10dp&quot;
                  android:textColor=&quot;@color/white&quot;
                  android:text=&quot;Mars&quot;
                  android:fontFamily=&quot;@font/assistant_extrabold&quot;
                  android:textSize=&quot;30dp&quot;/&gt;
  
          &lt;TextView
                  android:id=&quot;@+id/planetViews&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:gravity=&quot;center_horizontal&quot;
                  android:fontFamily=&quot;@font/assistant_extrabold&quot;
                  android:text=&quot;155 views&quot;/&gt;
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  <p>The image is cropped and I can't figure out how to predict that.
  I don't care about colour difference right now, I just want to set something, so it doesn't crop the image.</p>