Search code examples
androidrounded-cornersshapedrawable

Android - Rounded Rectangle within Rounded Rectangle


I am currently designing a login page and I've run into a problem with using rounded rectangles. My current layout looks somewhat like this:

enter image description here

It's a rounded rectangle containing a smaller rounded rectangle.

As you can see, the right edges of both rectangles seem to merge. However, I want to maintain a constant distance between the borders of the two rectangles for a crisper look. Is there any way I can do this?


Solution

  • On the EditText you may want to try layout_marginRight in the XML.