<?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 a portable folder. And I use this feature to set the background of images.
<ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_launcher" android:background="@drawable/shape"/>
Finished Appears when the application starts on the device / emulator (will not be displayed in the xml graphic layout)
Rohit source share