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

0 votes
I'm having some trouble locating the Android shape definitions in XML documentation. In order to integrate it in my layout files, I need to describe a straightforward circle filled with a solid colour in an XML file.

Sadly, the XML attributes of the Shape classes are not covered in the documentation on android.com. Although there is no description of how to determine the size, colour, or angle required to build a circle out of an Arc, I believe I should use an ArcShape to draw a circle.
4 days ago in Android by Edureka
• 10,880 points
18 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Android

0 votes
0 answers

How purple 200/500/700 define in the color.xml of a new Android Project?

A new Android project provides a set ...READ MORE

3 days ago in Android by Ashwini
• 2,760 points
12 views
0 votes
0 answers

Android - How to download a file from a webserver

I'm getting a kml file from a ...READ MORE

4 days ago in Android by Edureka
• 10,880 points
9 views
0 votes
0 answers

How to put a border around an Android TextView?

Is it possible to draw a border ...READ MORE

3 days ago in Android by Ashwini
• 2,760 points
16 views
0 votes
0 answers

How to open WhatsApp using an Intent in your Android App?

I want an Intent to take control ...READ MORE

3 days ago in Android by Ashwini
• 2,760 points
10 views
0 votes
0 answers

How to make grid view scroll horizontally not vertically in android?

I use a flexible Grid View. means ...READ MORE

Sep 21 in Android by Edureka
• 12,290 points
38 views
0 votes
1 answer

How to turn on front flash light programmatically in Android?

For this problem you should: Check whether the ...READ MORE

answered Nov 8 in Android by Edureka
• 10,880 points
30 views
0 votes
1 answer

How to make Diamond shape xml background for android view

you can do this: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> ...READ MORE

answered Jun 1 in Others by nisha
• 2,190 points
556 views
0 votes
0 answers

How to make gradient background in android

As in the example below, I want ...READ MORE

3 days ago in Android by Tejashwini
• 2,860 points
7 views
0 votes
1 answer

Running docker on Android

According to the documentation, the Android kernel is ...READ MORE

answered Aug 1, 2018 in Docker by Kalgi
• 52,350 points
3,022 views
0 votes
1 answer

Task Canceled Exception while invoking AWS Lambda

I'm guessing either the TaskCanceledException instance is ...READ MORE

answered Sep 19, 2018 in AWS by Priyaj
• 58,100 points
1,656 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP