How can I add images to array list and then add that arraylist to view in android?

I think that it would be better that you give more details about your problem such as how you get the images or how you are created your View. But I think that the code below will be useful for you ArrayList mBitmaps = new ArrayList(9); for (int I = 0; I Add(Bitmap. CreateBitmap(Bitmap_src)); } Collections.

Shuffle(mBitmaps); for (int I = 0; I Size; i++) { Bitmap bitmap = mBitmaps. Get(i)); //Show image in an ImageView //... } I send you an url about create and show BitMaps: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CreateBitmap.html.

I think that it would be better that you give more details about your problem such as how you get the images or how you are created your View. But I think that the code below will be useful for you. ArrayList mBitmaps = new ArrayList(9); for (int I = 0; I Size; i++) { mBitmaps.

Add(Bitmap. CreateBitmap(Bitmap_src)); } Collections. Shuffle(mBitmaps); for (int I = 0; I Size; i++) { Bitmap bitmap = mBitmaps.

Get(i)); //Show image in an ImageView //... } I send you an url about create and show BitMaps: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CreateBitmap.html.

One such way is to ditch the array, and use an ArrayList instead. Bitmap bitmap = mBitmaps. Terms of service.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions