Creating circled Layout in Android using xml - with material Desig shadow beeing circled around



Finally I've to ask a question too: I'm looking for a method to create a circled LinearLayout. So far, i'm able to create one using a drawable-xml and a solid color, but the Problem is, if i'm applying it to the Layout, it shows the Circle pretty good, but if i give the layout the "elevation"-Tag, e.g. 5dp, it shows the shadow in a box around the circle, right around the actual LinearLayout.


I need it to be around the Circle, so the rest is transparent.


(I also do have some other things INSIDE the layout! (Button, TextView etc. ), which need to rest in this layout! ;) )


I hope you can help me, if you need some Code or Picture let me know.


Looking forward for solution or an Idea ;) Thanks!


No comments:

Post a Comment