java - How to Set the Background Color Behind a .png Background in Android -
so have set of .png pictures have transparent background on checkerboard. when playing piece clicked, possible places piece can move change color. however, want know if in setting background color of tile , if tile has opposing piece on it, picture of opposing piece overridden , erased in favor of color. , if erased, how can avoid problem?
this call used set background .png file
btn.setbackgroundresource(r.drawable.filename);
this call used set background color
btn.setbackgroundcolor(color.color);
Comments
Post a Comment