Search code examples
androidbackground-imagexml-drawable

How can I make this background as an xml drawable?


I want give my app a background and I want create this in an xml file, not an image.
Can someone help me? please.

background here


Solution

  • XML file:

    <?xml version="1.0" encoding="utf-8"?>
    <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    
        <item android:top="200px">
            <shape>
                <solid android:color="#6bcbf4" />
            </shape>
        </item>
    
    
    
        <item android:bottom="900px">
            <shape android:shape="oval">
                <solid android:color="#FFF8F8F8"
                    />
            </shape>
        </item>
    
    
    
    </layer-list>