Skip to content

Instantly share code, notes, and snippets.

@sharifulislam52
Last active March 2, 2018 12:33
Show Gist options
  • Select an option

  • Save sharifulislam52/7600d1787ee59731b01aa1463939e240 to your computer and use it in GitHub Desktop.

Select an option

Save sharifulislam52/7600d1787ee59731b01aa1463939e240 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<!-- View background color -->
<solid
android:color="@color/color_name" >
</solid>
<!-- View border color and width -->
<stroke
android:width="1dp"
android:color="@color/color_name" >
</stroke>
<!-- The radius makes the corners rounded -->
<corners
android:radius="1dp" >
</corners>
</shape>
<!-- color_name -->
<!-- add bellow attribute into view for border -->
android:background="@drawable/Android_Drawable_Border"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment