直接使用下面的代码来实现就可以了。
try {
InputStream is=getAssets().open("imgs/bg.png");
Bitmap bm= BitmapFactory.decodeStream(is);
is
2020-03-10