Android item size in layer-list
<p>I need to set size for item in layer-list. For using as windowBackground in launch activity. I wrote this XML file and Android Studio displays it correctly. But in application the logo always full screen. How to make it?</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
&lt;item&gt;
    &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="rectangle" &gt;

        &lt;gradient
            android:endColor="#000004"
            android:gradientRadius="1000"
            android:startColor="#1f3371"
            android:type="radial" &gt;
        &lt;/gradient&gt;
    &lt;/shape&gt;
&lt;/item&gt;
&lt;item&gt;
    &lt;bitmap xmlns:android="http://schemas.android.com/apk/res/android"
        android:src="@drawable/texture_5"
        android:tileMode="repeat" /&gt;
&lt;/item&gt;
&lt;item android:drawable="@drawable/logo"
    android:height="100dp"
    android:width="77dp"
    android:gravity="center"
    &gt;

&lt;/item&gt;
&lt;/layer-list&gt;
</code></pre>