Quantcast
Channel: How to draw a circle inside a circle using Android xml shapes? - Stack Overflow
Browsing all 10 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by Albert Vila Calvo for How to draw a circle inside a circle using...

In case you need to draw 3 or more circles follow this pattern:<?xml version="1.0" encoding="utf-8"?><layer-list xmlns:android="http://schemas.android.com/apk/res/android"><!-- Larger...

View Article



Image may be NSFW.
Clik here to view.

Answer by ND1010_ for How to draw a circle inside a circle using Android xml...

Just you have to use Shap Attributexml code drawable<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"><stroke...

View Article

Image may be NSFW.
Clik here to view.

Answer by Aniruddha K.M for How to draw a circle inside a circle using...

I ended up here in search of drawing concentric circle found only answers with layer list approach so adding my answer with only using the shape, I hope it will help someone.<shape...

View Article

Answer by Ankit Pandey for How to draw a circle inside a circle using Android...

this is a short version of Sean Barbeau's answer<stroke android:width="1dp" android:color="@color/white" /><solid android:color="@color/dark_blue" /><size android:width="14dp"...

View Article

Answer by Niranjan for How to draw a circle inside a circle using Android xml...

Hope below code snippet helps :) <layer-list xmlns:android="http://schemas.android.com/apk/res/android"><!-- larger circle at the back --><item><shape...

View Article


Answer by scottyab for How to draw a circle inside a circle using Android xml...

I managed to solve this by setting the width and height of the <item> in the <layer-list>. Probably not as best practise, but seem ok as was for background of icon in list view that had...

View Article

Answer by Amir for How to draw a circle inside a circle using Android xml...

It's late but maybe helpful,you can use padding for center circle.<layer-list xmlns:android="http://schemas.android.com/apk/res/android"><item><shape android:shape="oval"><solid...

View Article

Image may be NSFW.
Clik here to view.

Answer by Sean Barbeau for How to draw a circle inside a circle using Android...

The only way I've gotten this to work is to define a transparent stroke for the inner (i.e., top) circle that's the difference between the size of the larger and smaller circle.For example,...

View Article


Answer by ЕвгенийДюндин for How to draw a circle inside a circle using...

hope it will help. This is drawable *.xml<?xml version="1.0" encoding="utf-8"?><layer-list xmlns:android="http://schemas.android.com/apk/res/android"><item><shape...

View Article


How to draw a circle inside a circle using Android xml shapes?

I'm trying to make a thumb for a seekbar for my app, and I want to have an inner circle surrounded by a different, larger (semi-transparent) outer circle. I'm trying to use layer-list, but I'm having...

View Article
Browsing all 10 articles
Browse latest View live


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>