2013-year-way: declare a special xml resource that describes ImageView content. For example, we want ImageView to contain a smoothed Bitmap. Therefore, we need to write something like this:
<bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:antialias="true" android:src="@drawable/ic_draggable_item"/>
Denis gladkiy
source share