android,drawable,selector-drawable
Finally, found the problem. There is a bug in android [pre-lollipop] OS which doesnt allow you to use attr in drawable. Here is the link to bug: https://code.google.com/p/android/issues/detail?id=26251 Android dev team has released a fix but it works on android L and above.For workaround to this problem, refer to following...