본문 바로가기

구글과인터넷/안드로이드

안드로이드 버튼 그라데이션 넣어주기 관련



//빨간색 계열 그라데이션 버튼

Button del = new Button(객체..);
del.getBackground().setColorFilter(new LightingColorFilter(0xFFFF5050, 0x0000000));

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
출처: http://stackoverflow.com/questions/1521640/standard-android-button-with-a-different-color