Display a gallery of images that are stored as Drawables in a List
Posted
by Tyler
on Stack Overflow
See other posts from Stack Overflow
or by Tyler
Published on 2010-05-09T18:41:13Z
Indexed on
2010/05/10
2:48 UTC
Read the original article
Hit count: 378
android
Hello -
I am trying to modify this example:
http://developer.android.com/resources/tutorials/views/hello-gridview.html
But instead of displaying images that are resources, I want to display Drawables that I currently am storing in a List.
Can anyone instruct me on how I would modify
private Integer[] mThumbIds = {
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7,
R.drawable.sample_0, R.drawable.sample_1,
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7,
R.drawable.sample_0, R.drawable.sample_1,
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7
};
To display my drawable items instead?
Thanks!
© Stack Overflow or respective owner