Saturday, November 19, 2011

[android-developers] Re: dynamic gallery array

1. subclass  BaseAdapter
  - implement getCount, getView
2. subclass AsyncTask<String, Void, Bitmap>
  - load your image in doInBackground, scale it down and cache it to the temporary chache dir
  - set the image in the onPostExecute
3. invoke your ImageLoaderTask in the getView(...) method
3. watch out for memory leaks

--
♪ www.christoph-polcin.com


--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate