Home How to define a circle shape in an android xml drawable file?
Reply: 0

How to define a circle shape in an android xml drawable file?

user5996
1#
user5996 Published in September 19, 2018, 10:29 am

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.

share|improve this question
  • 2
    Here you can read about how to create shape drawable: developer.android.com/guide/topics/resources/… – Mario Kutlev Aug 20 '13 at 10:57
  • You can get the circle xml from here developer.android.com/samples/WearSpeakerSample/res/drawable/… – Shahab Rauf Feb 15 at 8:13

12 Answers 12

active oldest votes
up vote -25 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.364128 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO