I want to draw a quarter circle like this.
is there any method to do like this shape using xml shape?
- 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.
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.
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.
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
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With