Circle changes to oval



I have a drawable that I would like to use as a background for a textView. The drawable is declared in the xml as a textView background. I am having a problem when testing the drawable on different screen sizes, as sometimes it stretches out and turns into an oval shape instead of staying as a circle.


So, specifically, my question is as follows: Is there any way to make sure that a drawable is always a circle and does not stretch into an oval? Preferably I would like everything to be done in XML.


I can post some of my code, but I think it is unnecessary because it is a simple drawable that uses the oval shape, and then in the layout I set the drawable to the background of a textView. My attempt to make the drawable to a circle was to use weights and a linear layout, and for the most part it works but it still stretches a bit in some screen sizes.


No comments:

Post a Comment