Use ArrayList instead of plain Array
Can Bitmap objects be added into a Bitmap array in android?
-
29-06-2022 - |
Domanda
Can I add Bitmap objects into Bitmap array in android, while trying to do that could find that there was no specific methods available for it.Any Help from any one would be highly appreciable. Thanks in advance for the help.
Soluzione
Altri suggerimenti
Try this :
Bitmap [] bitmapArray = new Bitmap[size];
for(int i = 0; i < bitmapArray.length; i++)
bitmapArray[i] = your_bitmap_object;
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow