본문 바로가기
프로그래밍

(안드로이드) 색정보로 Drawable 만들기

by hansoo.labs 한수댁 2015. 2. 24.
Make a drawable with color value in android

키포인트는 mutate()
ColorDrawable drawable = new ColorDrawable(item.color);
drawable.setBounds(0, 0, 10, 10);
imageView.setImageDrawable(drawable.mutate());

댓글0