Hello,
i currently have a List<Files> which are all jpg format.  I am trying
to traverse through this list displaying each image using the
ImageView class.  I'm having a problem finding a way to create an
image to display out of the contents of the list.  I am new to android
and the java language :-/   I have tried using createBitmap but it
seems Bitmap doesn't really work with Files either.  Any ideas?

here is the function..

public View getView(int position, View convertView, ViewGroup parent)
{
            ImageView i = new ImageView(mContext);

            i.setImageBitmap(thumbs.get(position));
            i.setAdjustViewBounds(true);
            i.setLayoutParams(new Gallery.LayoutParams(
                    LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));
            return i;
        }

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to