상세 컨텐츠

본문 제목

[안드로이드] 특정 버튼 안에 이미지 넣기

스마트기기개발관련/안드로이드 개발

by AlrepondTech 2011. 5. 18. 11:21

본문

반응형
728x170

 

 

 

=================================

=================================

=================================

 

 

 

 

 

 

 

출처: http://ezcocoa.com/?m=201101&paged=3

특정 버튼 안에 이미지 넣기

Button button = new Button(mContext);
button.setText("Close");
Drawable close = Drawable.createFromPath("/data/icon/image.png");
close.setBounds(0, 0, close.getIntrinsicWidth(), close.getIntrinsicHeight());
button.setCompoundDrawables(close, null, null, null);

 

 

=================================

=================================

=================================

 

 

 

 

반응형
그리드형


관련글 더보기

댓글 영역