this.getResources().getDrawabel(R.drawable.x) 转载于:https://www.cnblogs.com/abob/archive/2010/11/18/1881150.html