0

i need to show images in layout but only using view tag not image view tag in android studio.but i have already use background tag for oval shape?

Adeel Ahmad
  • 11
  • 1
  • 3

1 Answers1

0

I don't know your use case because you didn't post any code. ;-) Delete the solid to make the oval transparent. Move the item (oval/image) which you would like to be in the background to the first position. Try this xml for your drawable.xml:

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/ic_launcher_background"/>
    <item>
        <shape android:shape="oval">
            <solid android:color="@color/colorAccent"/>
        </shape>
    </item>
</layer-list>
Sachin Tyagi
  • 2,814
  • 14
  • 26
einUsername
  • 1,569
  • 2
  • 15
  • 26