title: Attribute android:gravity is not allowed here
body: <p>I was running a Flutter app, in that i was trying to remove the white screen when the app is initialized upon start up, so just went into <strong>android=&gt;app=&gt;src=&gt;main=&gt;res=&gt;drawable=&gt;launch_background.xml</strong>, there I edited the code but was unable to get the <strong>gravity attribute</strong> as i was getting an error as <code>Attribute android:gravity is not allowed here</code>. I did even try <strong>Invalidate Caches/Restart</strong> and <strong>minSdkVersion 21</strong>. The image does is showing up if i remove the <code>android:gravity</code> attribute</p>
  <pre><code>&lt;item&gt;
      &lt;bitmap
         android:gravity=&quot;center&quot;
         android:src=&quot;@mipmap/launcher_icon&quot; /&gt;
  &lt;/item&gt;
  ```[enter image description here][1]
  
  
    [1]: https://i.stack.imgur.com/3WdVm.png
  </code></pre>