What is the difference between setImageDrawable() setDrawable() of ImageView. When to use which ?
Asked
Active
Viewed 977 times
0
-
2There's no such method `setDrawable` for `ImageView`. – Simas Nov 19 '14 at 20:17
1 Answers
0
setImageDrawable
sets the image view with the drawable provided. You would use this to set a drawable in an imageView.
setDrawable
doesn't exist in the ImageView class; so, you would never use it in the same context. It looks like it's going to be added to API 21, but that will be in the RotateDrawable
class, which, wouldn't be used in the same context.
http://developer.android.com/reference/android/graphics/drawable/RotateDrawable.html

BlackHatSamurai
- 23,275
- 22
- 95
- 156