KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to put two oval drawables on top of each other, the first has transparency. However with the way I have it, it displays the first oval's color at the size of the second oval. <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape android:shape="oval"> <size android:width="15dp" android:height="15dp" /> <solid android:color="#35000000"/> </shape> </item> <item> <shape android:shape="oval"> <size android:width="5dp" android:height="5dp" /> <solid android:color="#000000"/> </shape> </item> </layer-list> How can I get this to work as intended? EDIT: Here is the parent: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/my_layerlist" /> </LinearLayout>
Tags (comma-separated)
Save Edits
Cancel