Skip to content Skip to sidebar Skip to footer

Need Help Getting Drawable From One Class Into GridView

I have a checkbox, that when checked, turns an icon into a bitmapdrawable. I then want that bitmap drawable to be able to show up in a gridView. I can't seem to get this working. H

Solution 1:

When you are using ArrayList Drawable instead of Integer then you must add your bitmap to that drawable array and then call notifyDataSetChanged() function of the adapter. It will be something like

drawables.add(default_bd);  
adapter.notifyDataSetChanged()

Post a Comment for "Need Help Getting Drawable From One Class Into GridView"