Many thanks Australuke, I'll give that a go.

On Jul 4, 1:21 pm, Australuke <austral...@gmail.com> wrote:
> Hi, i only have time for a quick reply. Inflating each view will have a
> performance hit on the fling animation; if there are only five then inflate
> them first in onCreate and store them in an array. Then modify getView to
> return the appropriate view from the array.
>
> This will of course mean there will be no recycling of the views but if all
> five are a different layout then recycling is impossible anyway.
>
> If your gallery is going to hold a lot of views, some of which are similar
> then you can recycle views from the array by checking the class name of the
> view in covertView, but there will be some complexities.
>
> Hope that helps, I can write more later.
>
> On 4 Jul 2010 22:05, "Neilz" <neilhorn...@gmail.com> wrote:
> I'm trying to modify the example, so that I can set each view
> according to my own xml layout file. So each of the five views will
> have its own layout.xml file, which gets inflated with a
> LayoutInflater and set as its view. Only three of the views are being
> instantiated, the other two just take the views created by the first
> two, so that they get repeated.
>
> On Jul 2, 3:52 pm, droidful <austral...@gmail.com> wrote:
>
> > HiNeilz,
>
> > I dont quite follow the problem; if you can elaborate I would be very
> > keen to investigate. Doe...
>
>

-- 
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