xml로 android:background 하면 잘 되는데

코드상에서 setBackgroundResource( R.drawable.xxx );

하면 마스킹 무시하고 원본 이미지 자체가 그냥 늘어납니다;;

경우에따라서 바꿔줘야하는데 방법이 없을까요?ㅜㅜ