Skip to content

Instantly share code, notes, and snippets.

@arielmagbanua
Created April 16, 2015 14:18
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save arielmagbanua/7482f1cc288cec647c96 to your computer and use it in GitHub Desktop.
Save arielmagbanua/7482f1cc288cec647c96 to your computer and use it in GitHub Desktop.
Android Drawable Shape: Rectangle with Rounded Corners
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<!-- fill/color -->
<solid
android:color="#ff0000"/>
<!-- Control the width and height of the shape -->
<size
android:width="200dp"
android:height="70dp"/>
<!-- Control the radius of each corners -->
<corners
android:topLeftRadius="30dp"
android:topRightRadius="15dp"
android:bottomLeftRadius="15dp"
android:bottomRightRadius="15dp"/>
</shape>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment