title: Android studio padding or margin around match parent imageview on phone
body: <p>I have a simple ImageView that has layout_width=&quot;match_parent&quot;. It looks fine there is no margin or padding around the ImageView in the Android Studio, but when I run and test it with my phone an unwanted margin or padding appears around the ImageView. I searched for similar threads but didn't help. I also tried scale types, background color, and negative paddings. These didn't work either.</p>
  <p>This problem also appears on all the layout types.</p>
  <p><a href="https://i.stack.imgur.com/QhTbL.png" rel="nofollow noreferrer">XML codes</a></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;FrameLayout 
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      tools:context=&quot;.BlankFragment&quot;&gt;
  
      &lt;ImageView
          android:id=&quot;@+id/imageView&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          android:src=&quot;@drawable/hthtt&quot; /&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/eSioS.jpg" rel="nofollow noreferrer">Margin or padding around the ImageView appears on the tested phone</a></p>