我想知道是否可以恢复drawable []的长度。
我试着像对 Integer[] 那样做:
int count;
count = myDrawable[].length;
但返回结果大约需要 5 秒(drawable[] 只包含 4 行)。
Drawable[] theme = {
Drawable.createFromStream(expansionFile.getInputStream("amiante_plombier_ce_1.png"), "src"),
Drawable.createFromStream(expansionFile.getInputStream("amiante_plombier_ce_2.png"), "src"),
Drawable.createFromStream(expansionFile.getInputStream("amiante_plombier_ce_3.png"), "src"),
Drawable.createFromStream(expansionFile.getInputStream("amiante_plombier_ce_4.png"), "src"),
};
知道为什么需要这么长时间吗?