2013년/Android app projects

ImageSwitcher 에서 비트맵 관리하기

AP4ILL 2013. 1. 31. 16:49

ImageSwitcher 에서 보여주던 이미지를 다이얼로그에 띄울려고 작게 만들었더니,

다이얼로그가 종료된 후에도 작게 만들어진채로 ImageSwitcher 처리가 되네요 @_@

별도로 Drawable 을 복사해주기 위한 단 한줄~! -0-


Drawable newDrawable = originDrawable.getConstantState().newDrawable();


요렇게 하시면 새로운 drawable 생성됩니다. :D