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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleHow 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