Well I know that this can be done in xml this way
android:background="@android:drawable/editbox_dropdown_dark_frame"
this line above is from my mind so it can have some errors, but basically is that way. Now how can I do the same thing but programatically?
Thanks
You can do it like this (from a View subclass):
If you have a reference to the view (say, from
findViewById), you can do the same thing:If you like, you can retrieve the
Drawableitself directly: