http://blog.androgames.net/40/custom-button-style-and-theme/ . Very nice.
Or you could just do in your code, like that
Button yourButton = (Button) findViewById(R.id.idForYourButton);you could define color 0xff00ffff in your color.xml, and get it by R.color.your_color.
yourButton.getBackground().setColorFilter(0xff00ffff, PorterDuff.Mode.MULTIPLY);
Немає коментарів:
Дописати коментар