This code causes force close exception on Emulator(API 18) and works in ASUS Nexus 7(API 21)
Your color resource must reside in an Android resource file (i.e.: in the colors.xml
file).
Android would not complain where you set it, but it must be defined as a color resource.
I.e.:
#ebebeb
[EDIT]
The names appear not to match...
See this line:
android:background="@drawable/login_btn_selector"
Then you say: So I tried to place the login_btn_selected.xml
.
It seems to be the cause of
Caused by: android.content.res.Resources$NotFoundException: File res/drawable-hdpi-v4/login_btn_selected.xml from drawable resource ID #0x7f020095.