Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to draw quarter circle in xml android

I want to draw a quarter circle like this. android xml drawable

is there any method to do like this shape using xml shape?

like image 873
Mostasim Billah Avatar asked Sep 26 '16 10:09

Mostasim Billah


People also ask

How to draw different types of circles in Android?

- GeeksforGeeks How to Draw Different Types of Circles in Android? In Android, we can manually create shapes as required. A shape can be designed in XML by creating an Android Resource File. The type of file allows various attributes like dimensions, color, strokes (border), solid (background), etc. for creating a desired shape and design.

How to design a circle in Android with XML?

A shape can be designed in XML by creating an Android Resource File. The type of file allows various attributes like dimensions, color, strokes (border), solid (background), etc. for creating a desired shape and design. Basically, in this article, we have explained 3 types of circles: Circle 3: A circle with a border and a solid color.

How do I create a circle image view in Android?

A circle image view is great for profile pics, but it can be difficult to create in Android as it requires a custom class. To quickly create a circle image view try this third party library available on GitHub. This is just a custom ImageView and not a custom Drawable or a combination of both.

Where can I get the circle XML file?

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 '18 at 8:13


Video Answer


1 Answers

Your can use below rectangle shape .xml file

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <size android:height="15dp" android:width="15dp"/>
    <solid android:color="@color/darkGray"/>
    <corners android:topRightRadius="0dp" android:bottomRightRadius="15dp"/>
</shape>
like image 165
Akhil Dabral Avatar answered Oct 17 '22 21:10

Akhil Dabral