Quantcast
Channel: How to define a circle shape in an Android XML drawable file? - Stack Overflow
Viewing all articles
Browse latest Browse all 20

How to define a circle shape in an Android XML drawable file?

$
0
0

I have some problems finding the documentation of the definitions of shapes in XML for Android. I would like to define a simple circle filled with a solid color in an XML File to include it into my layout files.

Sadly the Documentation on android.com does not cover the XML attributes of the Shape classes. I think I should use an ArcShape to draw a circle but there is no explanation on how to set the size, the color, or the angle needed to make a circle out of an Arc.


Viewing all articles
Browse latest Browse all 20

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>