java - Array of Bitmaps Displayed in a GridView using ArrayAdapter. Android -


i'm trying populate gridview array of bitmaps. when trying use code:

public void onresultreceived_image(bitmap[] bitmaps) {      arrayadapter<bitmap> adapter = new arrayadapter<bitmap>(this,                 android.r.layout.simple_list_item_1, bitmaps);      gridview.setadapter(adapter);  } 

i tostring exceptions, makes sense considering simple_list_item_1 attempting use text view populate grid (as understanding anyway).

i've put research custom array adapters far haven't found particularly useful or relevant bits of material towards bitmaps , gridviews. there easy fix or simple implementation of custom array adapters can point me to? new android , java.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -