Hello, I have a button with a linearButton image that has an installed background in XML. I want to conditionally replace the background in the code, but it will never happen!
Drawable replacer = getResources().getDrawable(R.drawable.replacementGraphic); linearButton.setBackgroundDrawable(replacer);
This seems ineffective, is there a โreloadโ function for buttons with images that I have to call before they change visually?
android xml drawable imagebutton
CQM Jul 19 '11 at 18:05 2011-07-19 18:05
source share