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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -