Half circle shape not work

前端 未结 5 2066
面向向阳花
面向向阳花 2020-11-30 23:42

I try to create half circle background, in development IDE preview it works, but when I launch in emulator it doesn\'t work.

Here is my shape c

5条回答
  •  孤城傲影
    2020-12-01 00:08

    You cannot create a semicircle from xml. but you could achieve what you are looking for using a circle with appropriate margin & padding.

    You can use a circle shape .xml file. Create a fixed sized circle like this:

    Example:

    
    
       
       
    
    

提交回复
热议问题