Hi, Many thanks for sharing. Did you manage to pin down the reason for the original problem with the del key? I'm having a similar issue but I'm not so keen on reimplementing the whole gallery just to solve this :)
On Jul 4, 1:32 pm, Neilz <[email protected]> wrote: > Many thanks Australuke, I'll give that a go. > > On Jul 4, 1:21 pm, Australuke <[email protected]> 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" <[email protected]> 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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

