Transparent circle with border

后端 未结 10 1479
南方客
南方客 2020-12-04 10:48

I am trying to create a circle with only a border using XML in android:




        
10条回答
  •  醉酒成梦
    2020-12-04 11:35

    If you set the color to #00000000, the result will be transparent. You would want to do it this way if you wanted to change it in the future of development. If you wanted it to be red and partially transparent for example, it would be #ff000088 The last two numbers are the opacity. I do it this way to make future changes easier.

提交回复
热议问题