画像の名前を指定してアセット フォルダーから画像を取得し、それをDrawableに設定する必要があります。
drw = Drawable.createFromStream(getAssets().open("/assets/images/"+drawables[i]),null);
しかし、私はFile not found exception
.(imagesはassetsとdrawablesのサブフォルダーです[i]-画像の名前(たとえば「ball.jpg」)。
画像の名前を指定してアセット フォルダーから画像を取得し、それをDrawableに設定する必要があります。
drw = Drawable.createFromStream(getAssets().open("/assets/images/"+drawables[i]),null);
しかし、私はFile not found exception
.(imagesはassetsとdrawablesのサブフォルダーです[i]-画像の名前(たとえば「ball.jpg」)。