Resources().getIdentifier(*identifier的名字*, "drawable",getPackageName()); 转载于:https://my.oschina.net/sunnycx/blog/306208