I have one LinearLayout as child of the scrollView, and that linearLayout has 3 linear layouts that I am adding images to. Now, I can't figure out how to handle memory issues.
On Sat, Mar 31, 2012 at 12:12 PM, Zsolt Vasvari <zvasv...@gmail.com> wrote: > A ScrollView can only contain ONE child view. So no, it's not possible > with View based objects. You could implement some kind of caching , but > when you go through all that trouble, you will realize that it's easier to > just use a ListView. > > > > On Saturday, March 31, 2012 7:06:51 AM UTC+8, Farhan wrote: >> >> I know it can be achieved usiing listViews, but how do I reuse views in >> scrollView?? Is that possible at all? >> >> On Sat, Mar 31, 2012 at 3:35 AM, lbendlin <l...@bendlin.us> wrote: >> >>> use a listview and re-use the rows. >>> >>> >>> On Friday, March 30, 2012 5:06:50 PM UTC-4, Farhan wrote: >>>> >>>> Hello everyone, >>>> >>>> In my application, I have custom scrollView to which a lot of images >>>> get added. I get an "outOfMemoryException" exception. I know why I am >>>> getting it, but I cant think of how to fix it while using a scrollView, not >>>> a listView. Any suggesstions? Hope to get some help soon. >>>> >>>> Regards, >>>> >>>> Farhan >>>> >>> -- >>> 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 <android-developers@googlegroups.com> >>> To unsubscribe from this group, send email to >>> android-developers+**unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> >>> For more options, visit this group at >>> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en> >> >> >> -- > 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 > -- 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