//빨간색 계열 그라데이션 버튼
Button del = new Button(객체..);
del.getBackground().setColorFilter(new LightingColorFilter(0xFFFF5050, 0x0000000));
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
출처: http://stackoverflow.com/questions/1521640/standard-android-button-with-a-different-color
'구글과인터넷 > 안드로이드' 카테고리의 다른 글
안드로이드 - Text.setOnTouchListener() 예제, 터치시 텍스트 뷰의 글자색 변환하기 (0) | 2012.12.12 |
---|---|
안드로이드 키보드 엔터키 바꾸기 (0) | 2012.12.12 |
안드로이드 로컬 html 불러오기 관련 (0) | 2012.12.12 |