title: How can I make the ripple effect look like a circle instead of an oval?
body: <p>I have the same ripple effect on most of my image buttons and on most of them it looks like a circle when pressed but on some buttons it looks like an oval and I'm just not sure why it looks different. I realize the actual ripple shape is set as oval but why does it look like a circle on some other buttons. It could be that I am just not seeing it right since it happens so quickly. </p>
  
  <p>Here is my ripple xml:</p>
  
  <pre><code>&lt;ripple xmlns:android="http://schemas.android.com/apk/res/android"
      android:color="?android:colorControlHighlight"&gt;
      &lt;item android:id="@android:id/mask"&gt;
          &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="?android:colorPrimary" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/ripple&gt;
  </code></pre>
  
  <p>Thanks. </p>
  
  <p>EDIT: Turned out to be an issue with me using <code>layout_weight</code> on the <code>ImageButtons</code> inside a <code>LinearLayout</code>. I removed the weight from the individual buttons and instead added spaces with a weight of one between each button like this:</p>
  
  <pre><code> &lt;Space
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_weight="1" /&gt;
  </code></pre>