<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="@android:color/darker_gray"/>
<corners android:topRightRadius="10dp"
android:bottomRightRadius="0dp"
android:topLeftRadius="0dp"
android:bottomLeftRadius="10dp"/>
</shape>
This is my drawable shape.xml in drawable folder. And I am using this drawable to set imageviews background.
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher"
android:background="@drawable/shape"/>
Done It will appear when you run app on device/emulator (Wont appear in xml graphical layout)